DEV Community

Programming language quirks

Undo is to remove or reverse actions right!!!!

So why is unshift used to add to an array in JS? šŸ˜…

Continue the thread by commenting with yours in the comments section.
Keep it rolling

Top comments (3)

Collapse
 
timileyin_wandf_84e4e43eb profile image
Timileyin WandF

in SQL:

NULL = NULL evaluates to NULL (not TRUE). Equality itself becomes uncertain.
🄲

Collapse
 
chocoscoding profile image
Chocoscoding - Oyeti Timileyin

Lol. 🫠

DYK that [] == ![] is true in Javascript?

Collapse
 
morolawanf profile image
Morola

Before, in PHP, comparing "password" == 0 used to return true.
Entire login systems got walked right through.