Vue · Junior · Question 64 of 75
What value does a Boolean prop get with <MyButton disabled />?
- ✓Correct answer:
true - 2
""(an empty string) - 3
undefined
Explanation
Vue casts the presence of the attribute to true, like native boolean attributes. Without the attribute it's false.