4.
Which of the following is a valid boolean value in JavaScript?
true
false
0
"true"
Correct: A, B
In JavaScript, boolean values can only be represented by the keywords "true" and "false". "true" represents a condition that is true, while "false" represents a condition that is false. The values 0 and "true" are not valid boolean values and do not represent true or false in JavaScript.