r/programming • • Aug 10 '12

Write any javascript code with just these characters: ()[]{}+!

http://patriciopalladino.com/blog/2012/08/09/non-alphanumeric-javascript.html
1.3k Upvotes

288 comments sorted by

View all comments

7

u/rock217 Aug 10 '12

ReferenceError: unescaue is not defined :(

24

u/mattaereal Aug 10 '12

You can try this on any browser, but remember to do it on when having a loaded page, because the 'p' for the alphabet is taken from the 'http' part from the current address.

11

u/[deleted] Aug 10 '12

That's because your URL doesn't contain "http".

12

u/alcuadrado Aug 10 '12

Really? Did you tried it on webpage? which browser?

→ More replies (12)

1

u/youstolemyname Aug 10 '12

Ctrl+Shift+K

2

u/mattaereal Aug 10 '12

Just to clarify, this opens a javascript console in Firefox.

Ctrl+Shift+J, in Chromium/Chrome.

0

u/[deleted] Aug 10 '12

[deleted]

19

u/alcuadrado Aug 10 '12

It must be run on a server, as it uses the "http" part of the url

→ More replies (4)

-4

u/The_MAZZTer Aug 10 '12

You typoed something, it should be evaluating to "unescape".

[Edit: As said it gets the "p" using the fourth character of the url, so it must be an "http" address.

→ More replies (3)