Vue · Junior · Question 64 of 75

What value does a Boolean prop get with <MyButton disabled />?

Explanation

Vue casts the presence of the attribute to true, like native boolean attributes. Without the attribute it's false.

Further reading

Problem with a question

Vue · Junior · question 64

Test yourself

Take the Vue · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz