4 ms·
And here I was thinking it’s hilarious that JS `undefined` is assignable! I’m sure there’s good historical reason for this, but being able to change booleans to
by eyelidlessness 4y ago
And here I was thinking it’s hilarious that JS `undefined` is assignable! I’m sure there’s good historical reason for this, but being able to change booleans to mean their opposite is something extra special to me
- klodolph 4y agoI think the only reason is because it is not specifically prohibited.
- eyelidlessness 4y agoHeh I think that’s the reason for JS undefined too
- runarberg 4y agoThere are quite a few assignable keywords in modern JavaScript. This is actually cromulent JavaScript: of = "wat"; for (of of of) of