317
parseInt(5) (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] spizzat2@lemm.ee 22 points 8 hours ago* (last edited 7 hours 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 13 points 8 hours ago

What if I pass in a Sterwart Copeland?

[-] xtools@programming.dev 2 points 1 hour ago

or a Honda civic

[-] spizzat2@lemm.ee 7 points 7 hours ago

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

this post was submitted on 05 May 2025
317 points (99.1% liked)

Programmer Humor

23025 readers
1408 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