Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

size of call stack js

function recurseForever(a) {
  console.log(a);
  return recurseForever(a + 1);
}

recurseForever(0);

// Ok, now we know the size of a call stack
 
PREVIOUS NEXT
Tagged: #size #call #stack #js
ADD COMMENT
Topic
Name
1+2 =