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

unicode vars

ECMAScript allows you to use unicode variable names, just use the usual \uXXXX codes:

    var \u1000 = {
      \u1001: 'foo',
      \u1011: 'bar'
    };

    console.log( \u1000.\u1001 ); // prints 'foo'
    console.log( \u1000.\u1011 ); // prints 'bar'

WTF right?

By @manekinekko

Fork me on GitHub