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
2 months ago
107,406 views
0 shares

javascript-memes, parseint-memes, bugs-memes, floating-point-memes, scientific-notation-memes | ProgrammerHumor.io
More Like This
Don't read the source, Luke!
3 years ago
98.6K views
0 shares

The Rhinoceros And The Butterfly: Choose Your Fighter
2 months ago
102.2K views
0 shares

Imagine pulling your hair out trying to fix the servers for an entire day only to find out that it's because some mf made a recursive tweet.
2 years ago
51.0K views
0 shares

moar Javascript
4 years ago
56.2K views
0 shares

The Infinite Else If Rabbit Hole
3 months ago
161.8K views
0 shares

As a react dev, now things getting clear.
9 months ago
28.6K views
0 shares

Loading more content...