DEV Community

loading...

Discussion on: ✨♻️ JavaScript Visualized: Event Loop

Collapse
hannadrehman profile image
hannad rehman

What if there are no functions is the program?.lets say i have 10 instructions like variable deceleration, assignment , arthematic operations etc. Will all these instructions also go to call stack?
Var a = 10:
Var b;
b = a+ 10;