+ 9

What is the weirdest thing you've seen in javascript?

is javascript weirdest?

20th Jul 2018, 1:11 PM
Alejandro Villalobos
Alejandro Villalobos - avatar
10 Respostas
+ 7
0 == [] //true😊 "0" == 0 //true😁 "0" == [] //false😈
20th Jul 2018, 1:15 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 7
[]+[] equals to "" []*2 equals to 0 ¯\_(ツ)_/¯
20th Jul 2018, 2:17 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 6
The first time I saw the arrow functions
20th Jul 2018, 1:15 PM
Alejandro Villalobos
Alejandro Villalobos - avatar
+ 3
For me it was learning the comment code so far since im new to all this
9th Sep 2018, 3:12 AM
Tyrel Hightower
Tyrel Hightower - avatar
+ 3
The arrow functions
9th Sep 2018, 5:43 AM
Salam Issahaku
Salam Issahaku - avatar
+ 1
Code on this... http://www.jsfuck.com/
20th Jul 2018, 1:23 PM
TurtleShell
TurtleShell - avatar
+ 1
===
9th Sep 2018, 6:14 AM
boaromayo
boaromayo - avatar
0
todo!! porque inicio
9th Sep 2018, 2:43 AM
José Cuenca Sánchez
José Cuenca Sánchez - avatar
0
'5' == 5 >>>true
9th Sep 2018, 6:11 AM
Hiro
Hiro - avatar
0
try to predict answer for php quizes in case of method names etc after that I think that js is not a wierdest. also type conversion is pretty wierd. for js: NaN == NaN; // false
16th Nov 2018, 9:01 PM
Sergei No
Sergei No - avatar