Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript call stacks

function foo(b) {
  let a = 10
  return a + b + 11
}

function bar(x) {
  let y = 3
  return foo(x * y)
}

console.log(bar(7)) //returns 42
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #call #stacks
ADD COMMENT
Topic
Name
7+1 =