Skip to content

Instantly share code, notes, and snippets.

@designfrontier
Created January 9, 2013 18:00
Show Gist options
  • Save designfrontier/4495292 to your computer and use it in GitHub Desktop.
Save designfrontier/4495292 to your computer and use it in GitHub Desktop.
Some nasty and fascinating JS recursion or your viewing pleasure. Paste in web inspectors js console and then work your way down through the arrays...
t = ['john'];
c = ['daniel','joe'];
t.push(c);
c.push(t);
c;
@designfrontier
Copy link
Author

For more fun add:
JSON.stringify(c)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment