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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

toString()

A

Returns a string of either “true” or “false” depending upon the value of the object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

valueOf()

A

Returns the primitive value of the Boolean object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly