Question #152

Author: admin
tags: Vue  
<template>
  <div>
    {{ user1.name }} and {{ user2.name }}
  </div>
</template>

<script setup>
import { reactive, ref } from 'vue';

let user1 = reactive({
  name: 'Bob',
});

const user2 = ref({
  name: 'Tom',
});

setTimeout(() => {
  user1 = reactive({
    name: 'Alex',
  });

  user2.value = {
    name: 'Fred',
  };
}, 1000);
</script>
What will the browser display after the callback from setTimeout is executed?
Bob and Tom
Bob and Fred
Alex and Tom
Alex and Fred
Rate the difficulty of the question:
easyhard