Menu
The best code is no code at all.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Number Memes
Posts tagged with Number
JavaScript's Type Conversion: A Horror Story
Javascript
Programming
Debugging
Frontend
Webdev
1 year ago
440.8K views
0 shares
JavaScript's type conversion is like that friend who's confident but wrong about everything. Empty string? That's clearly 0! "07foo"? Obviously 7! And my personal favorite: a tiny decimal like 0.0000005 somehow becomes 5, because who needs those pesky zeros anyway? The best part is how parseInt() and Number() can't even agree with each other. One sees scientific notation, the other just sees numbers to ignore. It's like watching two drunk mathematicians argue about how to split the bill. This is why JavaScript developers drink.
Today's picks
Where's The Love
Programming
149.4M views
7 days ago
Can you build it from trash?
Programming
91.9K views
4 years ago
windows command
Programming
233.4K views
5 years ago