Question · Vue.js course · Module 3: Reactivity

The readonly() function

What happens when you try to modify a readonly object?

Answer options

  • The change is applied normally
  • Vue produces a console warning and the change is ignored
  • The application crashes
  • The value is saved but not displayed

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