javascript call stacks

Solutions on MaxInterview for javascript call stacks by the best coders in the world

showing results for - "javascript call stacks"
Maria José
06 Feb 2020
1function foo(b) {
2  let a = 10
3  return a + b + 11
4}
5
6function bar(x) {
7  let y = 3
8  return foo(x * y)
9}
10
11console.log(bar(7)) //returns 42
12