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

Advanced: watch syntax in Vue

Arrange the syntax of the watch function in Vue 3:

Items to click

  • { console.log(newVal) })
  • (newVal, oldVal) =>
  • oxygenLevel,
  • watch(
Show the answer

Correct order:

  1. watch(
  2. oxygenLevel,
  3. (newVal, oldVal) =>
  4. { console.log(newVal) })