Created
May 19, 2013 15:34
-
-
Save danprince/5608014 to your computer and use it in GitHub Desktop.
Print Hello, World! without using string or integer literals.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
w=[]; | |
z = new String(); | |
s=function(a){ | |
w.push(String.fromCharCode(a.join(z))); | |
}; | |
a={}+[], | |
b=+!a, | |
c=b+b, | |
d=c+b, | |
e=d+b; | |
f=e+e-b | |
g=e+e; | |
s([f,c]) | |
s([b,a,b]) | |
s([b,a,g]) | |
s([b,a,g]) | |
s([b,b,b]) | |
s([e,e]) | |
s([d,c]) | |
s([g,f]) | |
s([b,b,b]) | |
s([b,b,e]) | |
s([b,a,g]) | |
s([b,a,a]) | |
s([d,d]) | |
console.log(w.join(z)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment