Weird JavaScript

by

sipping a cup of Java making some copies

Reading Time: 6 minutesHave you ever sat down to write a bit of JavaScript thinking, “this is easy; shouldn’t take more than a few minutes,” and then six hours later there you are with a bottle of whisky in one hand and a sharpened stick in the other shouting curses in Latin at StackOverflow answers? Obviously that’s a

by

Moon in a circular window with the sea. It's weird

Reading Time: 3 minutesA complaint I hear sometimes from folks programmers learning JavaScript is that it has both null and undefined. If JavaScript is your first programming language, this may not seem weird, but once you compare it to others… yeah, it’s strange. I have some suspicions for why this is and they may not be right but

by

A Salvador Dali style painting of a digital clock where it looks like an analog clock forgot numbers and grew weird assymetrical antennae as legs

Reading Time: 2 minutesWho cares about friends? How would you like to piss of Todd who won’t shut up about this season’s IPAs and Elon Musk’s 4D chess he’s playing on Twitter? Screw Todd. No one likes him and he deserves to hurt for making you think about NFTs again. Let’s use JavaScript’s type coercion in awful ways

by

a moon in a moon wearing a hat because stuff is weird.

Reading Time: 2 minutesThis is another one in the occasional series of, “weird JavaScript” where I address weird stuff in JavaScript that only haunts your nightmares if you dream in other programming languages. Today we discuss what the hell === actually does. Buckle-up buttercups. Grab a snickers and a whisky we’re going for a ride.