+ 2

Weird JS question

Can you guys please explain me why is ++[[]][+[]]+[+[]] equals to "10" and why is ++[[]][+[]] equals to 1

5th Oct 2018, 2:51 PM
Hayk Ghonakhchyan
Hayk Ghonakhchyan - avatar
2 Respuestas
+ 6
It's probably related to this: http://www.jsfuck.com
5th Oct 2018, 4:18 PM
Mert Yazıcı
Mert Yazıcı - avatar
+ 2
wowww, thank you ;)
5th Oct 2018, 4:51 PM
Hayk Ghonakhchyan
Hayk Ghonakhchyan - avatar