News for hackers. Stuff that matters.
Re:JSFuck (2012) by abdusco on Sunday September 26, 2021 @03:37AM (#28659120)
That's Javascript for you.

Summing arrays calls `.toString()` on them, and two empty string gives you a new empty string.

    [].toString() === ''
    [] + [] 
        === '' + '' 
        === ''
https://github.com/denysdovhan/wtfjs#adding-arrays

There are no comments on this comment yet.