We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent1775267 commit083a957Copy full SHA for 083a957
event-loop.md
@@ -34,10 +34,13 @@ Whenever a javascript code is executed, all function calls are pushed into the c
34
// 16
35
```
36
37
+Below is the state of call stack for each function call, each column will describe a new call stack state after a function call
38
+
39
| line-14 <br />`printSquare(4)`| line-10 <br />`sqaure(n)`| line-6 <br />`multiply(n,n)`| line-2 <br />`return`| line-6 <br />`return`| line-11 <br />`console.log(squared)`| <br />`console.log` is returned| line-12 <br />`implicit return`|
40
|---|---|---|---|---|---|---|---|
41
|||`multiply(n,n)`||||||
42
||`square(n)`|`square(n)`|`square(n)`||`console.log(squared )`|||
43
|`printSquare(4)`|`printSquare(4)`|`printSquare(4)`|`printSquare(4)`|`printSquare(4)`|`printSquare(4)`|`printSquare(4)`||
44
+|`main()`|`main()`|`main()`|`main()`|`main()`|`main()`|`main()`|`main()`|
45
46