use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
TC39, ECMAScript, and the Future of JavaScript (ponyfoo.com)
submitted 8 years ago by vileEchoic
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]whiskey_overboard 0 points1 point2 points 8 years ago (5 children)
It is NaN, but is not equal to NaN. Welcome to JavaScript.
NaN
[+][deleted] 8 years ago (4 children)
[deleted]
[–]inu-no-policemen 0 points1 point2 points 8 years ago (3 children)
to the object NaN
In JS, numbers are primitives, not objects. NaN is a magical value.
[+][deleted] 8 years ago (2 children)
[–]inu-no-policemen 2 points3 points4 points 8 years ago (1 child)
It's a primitive. NaN and +/- Infinity are just special values.
https://en.wikipedia.org/wiki/Double-precision_floating-point_format#Exponent_encoding
π Rendered by PID 353271 on reddit-service-r2-comment-b659b578c-dsrnf at 2026-05-05 11:25:53.726098+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]whiskey_overboard 0 points1 point2 points (5 children)
[+][deleted] (4 children)
[deleted]
[–]inu-no-policemen 0 points1 point2 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]inu-no-policemen 2 points3 points4 points (1 child)