Writing JavaScript with Only Six Characters
javascript.christmas
Writing JavaScript with Only Six Characters
1–10 of 18 posts
Re: Writing JavaScript with Only Six Characters
#2Re: Writing JavaScript with Only Six Characters
#3Re: Writing JavaScript with Only Six Characters
#4I don't write alot of blog posts. Appreciate any feedback you might have :)
Re: Writing JavaScript with Only Six Characters
#5Re: Writing JavaScript with Only Six Characters
#6Re: Writing JavaScript with Only Six Characters
#7Re: Writing JavaScript with Only Six Characters
#8Is there a limit to what one can do with these six characters? Like, now we're reading values from the string "false". We also could read from "true", and maybe undefined (how?). But can one do more? If one can generate "window", one should be able to call functions through window["functionName"]() and do general computing with this, I think?
Re: Writing JavaScript with Only Six Characters
#9Is there a limit to what one can do with these six characters? Like, now we're reading values from the string "false". We also could read from "true", and maybe undefined (how?). But can one do more? If one can generate "window", one should be able to call functions through window["functionName"]() and do general computing with this, I think?
It quickly gets more complicated though, and will require alot more code:
"undefined": [][![]]+[] (empty array accessed at index 0 turned into string)
"NaN": +{}
"[object Object][object Object]": {}+{}
.. etc
See the full list here: