- cross-posted to:
- programmerhumor@lemmy.ml
- cross-posted to:
- programmerhumor@lemmy.ml
NaN minutes later, a truck arrives in the alley, its license plate reads “undefined”. Someone gets out of the vehicle
“I have something for you”
He gives you a package. You open it. It’s an [object Object]Must be from the NPM delivery service. The recipient is lucky the driver didn’t give them thousands of dependencies too.
Guess why he came with a truck and not on a cargo bike…
“I got a package from Jason”
“I also got a lock”
You wouldn’t want your code throw an exception
I [object Object]
Wait until Null opens the door
As someone who mostly avoids JavaScript, I don’t see the IT in this image, I just see a bad language I avoid!
This isn’t the languages fault, it’s the developers.
besides NaN actually being a number, this could completely and easily be avoided with typescript.
Naaah. Good programmers know how to use
as any as anyto make this work in typescript as well.







