Question · Vue.js course · Module 4: Computed & Watch

Computed syntax

How do you correctly create a computed property in the Composition API?

Answer options

  • const value = computed(() => ...)
  • const value = ref(() => ...)
  • const value = reactive(() => ...)
  • const value = watch(() => ...)

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