No Such Thing As An Intuitive Programming Language

No Such Thing As An Intuitive Programming Language
javascript-memes, type-coercion-memes, programming-languages-memes, web-development-memes, string-concatenation-memes | ProgrammerHumor.io

First panel: JavaScript behaving like a normal language where string + string = concatenated string. Second panel: JavaScript on crack where '2'+'2' = 100 and "Hello"+2 = "llo".

The true horror of JS type coercion in its natural habitat. What kind of sadistic language designer thought "yes, let's make + sometimes concatenate and sometimes convert strings to numbers based on my mood today"? This is why senior devs have that thousand-yard stare during code reviews.

More Like This