Question · Vue.js course · Module 5: Events & Forms
Data type from checkbox v-model
What data type does v-model return on an <input type="checkbox"> element?
Answer options
- String with value "on" or "off"
- Boolean (true/false)
- Number (1 or 0)
- Object with a checked field
You can check the correct answer by solving this task in the CodeWorlds game.