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
1 year ago
424,677 views
0 shares
javascript-memes, parseint-memes, bugs-memes, floating-point-memes, scientific-notation-memes | ProgrammerHumor.io
More Like This
Vulpix is my favorite JS library
5 years ago
347.4K views
0 shares
Learning Curve
1 year ago
562.5K views
4 shares
Redundant Function Definition
7 months ago
661.6K views
1 shares
Imposter Language
4 months ago
7.9M views
3 shares
Why you should always read the LICENSE
4 years ago
111.6K views
0 shares
NordVPN
Sponsored
VPN
How To Prove You're A Programmer
1 year ago
396.1K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++