Skip to content
markdown guide

There's this guy who made a good joke years ago, and keeps trying to cash in on it.


It's because this is a so bad joke that the better you can do is laugh about it.

Sometimes instead of this, I misspell shit, that's almost the same.


I wanted to learn JavaScript, but I'm not sure I can learn with my

window of time

Did I say something wrong? Oh well, please do answer


A JavaScript developer walks into a bar.

The barman asks "why the long face?"

The developer replies "I programme in JavaScript."

"Oh! Sorry," says the barman. "Why the ieee double precision floating point face?" and pulls him 0.999999 pints.


pints ๐Ÿค”๐Ÿค”๐Ÿค”๐Ÿค”๐Ÿค”๐Ÿค”๐Ÿค”๐Ÿค”๐Ÿค”๐Ÿค”๐Ÿค”๐Ÿค”๐Ÿค”๐Ÿค”


Are you curious because you've never had a pint, or because in English any amount other than 1 is plural?


OK, I get the rest, but why the hell does {} + [] === 0


{} + [] is the most stupid thing people joking about JS ever. Actually, the behavior is the same like for []+{} โ€” it's calling toValue(), but in the CLI/browser console, when you're writing an expression starts from from {}, it actually means not an object, but a block, that means empty instructions set to compiler in this context. So the expression is just '+[]'.

Classic DEV Post from Jul 30 '19

PublishTo.Dev: Scheduling article publishing on

Sharad Raj profile image
Learning to be a GIANT | Intel AI Edge Scholar 2019 | Google India Scholar 2018