JavaScript Is Weird (EXTREME EDITION)
Video Statistics and Information
Channel: Low Level JavaScript
Views: 27,076
Rating: 4.9766474 out of 5
Keywords: javascript, learning javascript, js, how to build a compiler, js is weird, javascript is weird, banana, jsfuck
Id: sRWE5tnaxlI
Channel Id: undefined
Length: 21min 28sec (1288 seconds)
Published: Fri Aug 23 2019
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
Honestly most of the JS type conversions kinda make sense if you squint at it. Like number to string? Sure, Java does that too. String to number? A little weird, but okay.
The big big one that is truly wtf is how reserved words become string versions of themselves.
undefined + ""
should not be"undefined"
. I can't think of a single justification for this. I suppose it stems from Lisp's whole concept of symbols but it's totally pointless since there's no real macro system or homoiconicity, and therefore no real metaprogramming in JS.My takeaway is that I really don't want to ever write javascript and I really like strongly typed languages.
He's speaking the language of
the godsSatan.string literals are great fun
r/programminghumor