isNaN

31 views
Skip to first unread message

Michael Brockington

unread,
Sep 20, 2013, 11:32:09 AM9/20/13
to js-drip-d...@googlegroups.com
I (think) I understand the subtle difference between the result of isNaN( someString )  and actually checking if a variable holds the value  NaN  but I notice that your example doesn't show how this causes an issue, and for the life of me I cannot think of any "real world" situation where this would be an issue.
Sure, you might lose a point in an exam, but in my experience, I only ever want to know whether something is a workable number or not - I've NEVER actually cared whether a particular value is NaN itself.

Mike
Reply all
Reply to author
Forward
0 new messages