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

.number modifier

What does the .number modifier do?

Answer options

  • Automatically converts the value to a Number type
  • Only allows digits in the input
  • Formats the number with thousand separators
  • Validates whether the value is a number

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