Hacker News new | ask | show | jobs
by holtalanm 1823 days ago
> Calling these things weird is fair enough but I can't help thinking this is code you'd never actually write outside of the context of a "Look how weird JS is!" post.

That is the whole premise of the site, though. They even say that these examples aren't common syntax or patterns before you start.

1 comments

The site is called "JavaScript Is Weird", not "Weird Javascript", even if they tell you that the examples aren't common they're still saying that this weirdness is unique to JS. Which definitely isn't true in the case of basic floating point precision problems
> The site is called "JavaScript Is Weird", not "Weird Javascript"

am i being punkd?

The former is a general statement about Javascript itself as a whole while the latter is describing a set of examples.