in HOW, TECH/WORK

And by funny, I mean ridiculous πŸ™ˆ

but… it’s also ubiquitous. And it gives us all enough rope to… you know

Let’s start with its “truthfulness”

Why so random then, eh? πŸ€”

Behold… SchrΓΆdinger‘s boolean handling right here 🀣

funny javascript

fail πŸ€¦β€β™‚οΈ


Let’s talk about Not a Number

Turns out, this value is not strictly equal to itself 😁

fail πŸ€¦β€β™‚οΈ


It does silent typecasting and coercion of types

Whyy?? 😀

fail πŸ€¦β€β™‚οΈ


 

TypeOf BS

Wasn’t everything supposed to be an Object? πŸ™ƒ

fail πŸ€¦β€β™‚οΈ


 

Real brogrammers use `eval()`

because `eval()` executes strings too πŸ€ͺ

fail πŸ€¦β€β™‚οΈ


 

`undefined` can be very vague

instead of throwing an error, for a non existent entity, you get the lie that it exists, it’s just… undefined 😈

fail πŸ€¦β€β™‚οΈ


 

Empty stuff is `true`?

WAT? 😳

fail πŸ€¦β€β™‚οΈ


 

Sorting arrays is, well, DYI-ish

and inline passing of functions is tons of fun totally safe πŸ˜…

 

fail πŸ€¦β€β™‚οΈ


 

Speaking of functions, welcome to Callback Hell

thou shalt not chain-invoke divisions by zero πŸ˜†

fail πŸ€¦β€β™‚οΈ


 

nuff said πŸ€¦β€β™‚οΈπŸ€·β€β™‚οΈπŸ€“

Write a Comment

Comment