DEV Community

Discussion on: Why (! + [] + [] + ![]).length is 9

Collapse
 
jacobmparis profile image
Jacob Paris • Edited
(({})[[]]+[]).length

This is also equal to 9 but for a very different reason

Collapse
 
tyskie profile image
tyskie
(-1/0+[]).length

This one too but for yet another reason

Collapse
 
moopet profile image
Ben Sinclair
(({})[[]]+[])[1]+(({})[[]]+[])[5]+(({})[[]]+[])[1]+(({})[[]]+[])[3]

Standing on the shoulders of giants.

Thread Thread
 
jacobmparis profile image
Jacob Paris

You can stand on your own shoulders this was perfect