DEV Community

Discussion on: What is the oddest JavaScript behavior?

Collapse
 
brandonmack111 profile image
brandonmack111

I'd say definitely this:

(![] + [])[+[]] +
(![] + [])[+!+[]] +
([![]] + [][[]])[+!+[] + [+[]]] +
(![] + [])[!+[] + !+[]];
// -> 'fail'