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

Purpose of the watch function

What is the purpose of watch() in Vue.js?

Answer options

  • To calculate values based on dependencies
  • To render components
  • To display a clock in the application
  • To observe reactive sources and execute a callback on changes

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