Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit083a957

Browse files
committed
event loop stack table changes
1 parent1775267 commit083a957

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎event-loop.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ Whenever a javascript code is executed, all function calls are pushed into the c
3434
// 16
3535
```
3636

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+
3739
| 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`|
3840
|---|---|---|---|---|---|---|---|
3941
|||`multiply(n,n)`||||||
4042
||`square(n)`|`square(n)`|`square(n)`||`console.log(squared )`|||
4143
|`printSquare(4)`|`printSquare(4)`|`printSquare(4)`|`printSquare(4)`|`printSquare(4)`|`printSquare(4)`|`printSquare(4)`||
44+
|`main()`|`main()`|`main()`|`main()`|`main()`|`main()`|`main()`|`main()`|
4245

4346

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp