JavaScript's parseInt function just decided that 0.0000005 equals 5 because scientific notation turned it into "5e-7" and parseInt grabbed just the "5" like a toddler picking only the M&Ms out of trail mix. Six decimal places? Nah, too much work. Five? Still zero. Seven? BOOM, suddenly 5. It's like JavaScript was programmed by someone rolling dice to determine behavior. No wonder developers drink.
Someone Explain This To Me Like Im Five
18 hours ago
59,585 views
0 shares

javascript-memes, parseint-memes, bugs-memes, floating-point-memes, scientific-notation-memes | ProgrammerHumor.io
More Like This
I was one google search away from learning entire language I don’t need. Dodged a bullet
2 years ago
17.1K views
0 shares

White Guy Blinking Overflow Error
3 years ago
33.4K views
0 shares

Based on recent events
1 year ago
15.3K views
0 shares

Step to success
3 years ago
23.6K views
0 shares

PSA: Keep up with the kid's lingo.
1 year ago
30.4K views
0 shares

It's Truthy
2 years ago
12.2K views
0 shares

Loading more content...