Question · Vue.js course · Module 5: Events & Forms

v-model with checkbox

What data type does v-model return for a single checkbox?

Answer options

  • String ('on'/'off')
  • Number (1/0)
  • Boolean (true/false)
  • Array

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