A breakdown of the JavaScript quirks in the meme below... { author: @mkrl__ } dev.to/mkrl/javascrip…
@ThePracticalDev @AmyOh89 @mkrl__ To be fair 'true==1' is true and 'true===1' is false is exactly how you'd expect it to work if you get type conversion.
@ThePracticalDev @mkrl__ Why would you even think about subtracting booleans or writing any code from these examples?
@ThePracticalDev @mkrl__ in fact true===1 -> false and true==1 -> true has sense.
@ThePracticalDev @mkrl__ Totally logical tbh.
@ThePracticalDev @mkrl__ Javascript is overused on the web. A simple page that only needs to show static data gets 4k of javascript BS loaded. on top of that if you give it no permission to run, the site remains blank, I mean WTF is wrong with the web these years. #programming #logic #javascript #BS
@ThePracticalDev @johnwolfe820 @mkrl__ Type coercion is a wonderful thing, isn't it? XD
@ThePracticalDev @mkrl__ This looks terrible. Why is node.js popular?
@ThePracticalDev @mkrl__ I bet when he introduce javascript, he got a comment "What kind of sorcery is this!" 😂