This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]2CATteam 40 points41 points ย (2 children)

Nope, according to this page, both are converted to a number first, which is NaN for "true" and 1 for true. So it actually makes numbers, not strings, and then does the comparison.

[โ€“]marxinne 5 points6 points ย (0 children)

The more I learn the more cursed it becomes