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
3 months ago
129,030 views
0 shares

javascript-memes, parseint-memes, bugs-memes, floating-point-memes, scientific-notation-memes | ProgrammerHumor.io
More Like This
Recipe For Disaster
4 months ago
135.8K views
0 shares

Everyone Has Their Favorite (And Will Fight To The Death For It)
1 month ago
151.7K views
0 shares

Such an amazing library. Humanity has peaked
3 years ago
113.1K views
0 shares

A Terrible Dream For Frontend Devs
1 day ago
64.4K views
0 shares

A very angry web developer(truthful too)
3 years ago
105.6K views
0 shares

we have to improve something i gues
1 year ago
35.8K views
0 shares

Loading more content...