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
6 months ago
194,259 views
0 shares
javascript-memes, parseint-memes, bugs-memes, floating-point-memes, scientific-notation-memes | ProgrammerHumor.io
More Like This
I Just Wanted To Learn Java Script
1 year ago
84.7K views
0 shares
3 years ago
115.0K views
0 shares
Employers ate already looking for CARBON developers, you just need to have 10 years of CARBON experience to apply!!! -fireship
2 years ago
79.5K views
0 shares
Hello darkness my old friend
3 years ago
70.4K views
0 shares
When a web dev goes overboard
2 years ago
67.4K views
0 shares
The Modern Senior Developer Qualification
7 months ago
210.5K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp