3 ms·
Still the same footguns for the sake of backwards compatibility. Things like: typeof '' == 'string' false And many others that I'm are too depressing to m
by petre 3y ago
Still the same footguns for the sake of backwards compatibility. Things like:
typeof '' == 'string'
false
And many others that I'm are too depressing to mention. This is the latest one that I got surprised with.
Yes, it's fast but so is Lua, Dart or even Racket.
- Sammi 3y agoCan I qoute my comment verbatim back at you? Seriously. Just don't use ==. Use ===. Et voila you're using a modern pleasant scripting language. Modern guides on js won't ever mention ==. As a noob today you won't ever learn it. In a big project there will be a linter to stop you
- DemocracyFTW2 3y agowha? Welcome to Node.js v19.9.0. Type ".help" for more information. > typeof '' == 'string' true ???