Put in order · Vue.js course · Module 1: Vue and Vite

Creating a reactive variable

Arrange the syntax for creating a reactive variable with ref():

Items to put in order

  • counter
  • ref(0)
  • const
  • =
Show the answer

Correct order:

  1. const
  2. counter
  3. =
  4. ref(0)