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

Advanced: computed property syntax

Arrange the syntax of a computed property in Vue 3:

Items to click

  • computed(
  • firstName.value + ' ' + lastName.value)
  • () =>
  • const fullName =
Show the answer

Correct order:

  1. const fullName =
  2. computed(
  3. () =>
  4. firstName.value + ' ' + lastName.value)