Skip to content
loading...
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

this.prompt()
 
 

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 Nov 30 '19

Does your background make your work unique?

What's the skill, hobby or weird habit that makes your work unique?

SHARAD RAJ profile image
Learning to be a Giant | Intel AI Edge Scholar 2019 | Google India Scholar 2018

DEV is visited by over 2 million software developers per month. You are welcome to publish here or simply read great content.

Get Started