Question · Vue.js course · Module 3: Reactivity

ref() vs reactive() - primitive values

Which function should you use for primitive values (number, string)?

Answer options

  • ref()
  • reactive()
  • Both work equally well
  • Neither - use data()

You can check the correct answer by solving this task in the CodeWorlds game.