created by Brian LeRoux & Andrew Lunny. sparodically uncurated by David Trejo.

2010 04 30 operators and regexp fun

@ThomasFuchs throws down this obfuscated beauty:

    1 + + 1              // => 2
    1 + - + 1            // => 0
    1 + - + - + 1        // => 2
    1 + - + - + - + 1    // => 0
    1 + - + + + - + 1    // => 2
    1 + / + + + / + 1    // => 1/ + + + /1

Be sure to read the comments!)

Fork me on GitHub