Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function recursetree(pattern, endlevel ) {
- // Create an n-tall/wide tree from a pattern (nominally '#'s)
- // Recursive solution by Bob Clark 3/19/19
- console.log(pattern);
- if (pattern.length < endlevel) {
- recursetree(pattern + '#', endlevel);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement