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
7 months ago
226,950 views
0 shares
javascript-memes, parseint-memes, bugs-memes, floating-point-memes, scientific-notation-memes | ProgrammerHumor.io
More Like This
Full Stack Developer Starter Pack
2 months ago
211.5K views
0 shares
A Fraction Of Our Power
7 months ago
192.9K views
0 shares
God's developer console
2 years ago
77.0K views
0 shares
Its A Lot Faster
9 months ago
303.3K views
0 shares
Lied on my resume about having great Js experience cause I once created an empty webpage with a button that added a background color. Now leading a Vue.Js based dev project
2 years ago
63.5K views
0 shares
JavaScript is pronounced E-C-M-A Script
2 years ago
234.5K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp