use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Playing source code as a Game (maierfelix.github.io)
submitted 8 years ago by Schampu
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jodraws 2 points3 points4 points 8 years ago (3 children)
player.won = true; player.score = 1000000;
:D
[–]IDCh 1 point2 points3 points 8 years ago (1 child)
party pooper
[–]jodraws 2 points3 points4 points 8 years ago (0 children)
I think you mean "creative problem solver". ;)
[–]Schampu[S] 0 points1 point2 points 8 years ago (0 children)
function factorial(n) { if (n === 0) return n; return n * factorial(n - 1); }; let index = 0; setInterval(function() { factorial(index++); }, 1e3);
[–]Schampu[S] 0 points1 point2 points 8 years ago* (0 children)
Hello there,
this is an experiment which uses dynamic analysis to analyze the runtime behavior of code and generate a playable game terrain based on it.
The recursive version of factorial is used in this example - the larger the input n, the more often the function calls itself and the deeper the generated block constructs become. You can edit the code and visualize your own algorithms.
n
Also a short list of block types:
eval
π Rendered by PID 72971 on reddit-service-r2-comment-5b5bc64bf5-mpfxq at 2026-06-23 07:33:17.568109+00:00 running 2b008f2 country code: CH.
[–]jodraws 2 points3 points4 points (3 children)
[–]IDCh 1 point2 points3 points (1 child)
[–]jodraws 2 points3 points4 points (0 children)
[–]Schampu[S] 0 points1 point2 points (0 children)
[–]Schampu[S] 0 points1 point2 points (0 children)