Boolean Methods Flashcards
(3 cards)
1
Q
toSource()
A
Returns a string containing the source of the Boolean object; you can use this string to create an equivalent object.
2
Q
toString()
A
Returns a string of either “true” or “false” depending upon the value of the object.
3
Q
valueOf()
A
Returns the primitive value of the Boolean object.