499
parseInt(5) (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] spizzat2@lemm.ee 31 points 2 months ago* (last edited 2 months ago)

And to further expand on that, if you do pass in a ~~sting~~ string, it handles it correctly.

> parseInt('0.0000005')

0
[-] SpaceNoodle@lemmy.world 18 points 2 months ago* (last edited 2 months ago)

What if I pass in a Stewart Copeland?

[-] spizzat2@lemm.ee 9 points 2 months ago

๐Ÿ˜† I'll be watching you...

[-] xtools@programming.dev 3 points 2 months ago

or a Honda civic

this post was submitted on 05 May 2025
499 points (98.8% liked)

Programmer Humor

25139 readers
1402 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS