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:
- watch(
- oxygenLevel,
- (newVal, oldVal) =>
- { console.log(newVal) })