That is just javascript trivia that one rarely encounters in real code, and shouldn't be used to dismiss the entire language.
> "There are only two kinds of languages: the ones people complain about and the ones nobody uses".
I'm not a fan of JavaScript but I do like TypeScript.