Complete the code to create a reactive state variable in Vue.
const count = [1](0);
In Vue, ref is used to create a reactive primitive value like a number.
Complete the code to update the reactive state variable in Vue.
count[1] = count[1] + 1;
When using ref, you access or update the value with .value.
Fix the error in the code to share state between components using Vue's provide/inject.
provide('count', [1]);
You provide the reactive reference itself, not its value, so child components stay reactive.
Fill both blanks to create a computed property that doubles the count.
const doubleCount = computed(() => count[1] * [2]);
Access the reactive value with .value and multiply by 2 to double it.
Fill all three blanks to create a reactive object with a name and age, and update age.
const person = reactive({ name: '[1]', age: [2] });
person.[3] = 30;Create a reactive object with name 'Alice' and age 25, then update the age property to 30.
