Skip to content

Instantly share code, notes, and snippets.

@danprince
Created May 19, 2013 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danprince/5608014 to your computer and use it in GitHub Desktop.
Save danprince/5608014 to your computer and use it in GitHub Desktop.
Print Hello, World! without using string or integer literals.
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