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 month ago
88,740 views
0 shares

javascript-memes, parseint-memes, bugs-memes, floating-point-memes, scientific-notation-memes | ProgrammerHumor.io
More Like This
Backend Mansion, Frontend Nightmare
2 months ago
107.4K views
0 shares

Stop doing computer science!
1 year ago
49.8K views
0 shares

They All Think They Are Living For1000 Years
7 months ago
30.8K views
0 shares
The Sacred Art Of Variable Naming
28 days ago
103.0K views
0 shares

Distracted By The Shiny New Runtime
1 month ago
115.9K views
0 shares

Loading more content...