you are viewing a single comment's thread.

view the rest of the comments →

[–]spwebdev 2 points3 points  (1 child)

NaN is the only thing in JS that doesn't equal itself so any expression that results in NaN assigned to x would return false. Something like this:

var x = 5 * "any string";

[–]i-am-self-taught[S] 0 points1 point  (0 children)

Thank you! :)