Question · Vue.js course · Module 7: Props & Events
Default prop value
How do you set a default value for a prop?
Answer options
- props.delay = 480
- { delay: Number = 480 }
- You cannot set a default value
- { delay: { type: Number, default: 480 } }
You can check the correct answer by solving this task in the CodeWorlds game.