Put in order · Vue.js course · Module 4: Computed & Watch

Computed with form validation

Arrange the computed for email validation in the correct order:

Items to put in order

  • !email.value ? '' :
  • const emailError = computed(() =>
  • 'Invalid email')
  • regex.test(email.value) ? '' :

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