DEV Community

[Comment from a deleted post]
Collapse
 
rahulnainwal107 profile image
Rahul Nainwal

Well everything is great about that post but still, I have some confusion like :
1- Dose javascript engine first scan for all variable and function and put them on global memory and then start execution of javascript code?
2-Where the local memory is created means inside global execution context or global memory.
3- Can call stack to have more than two functions at a time, if yes then how?
4- What will be the execution scenario for this code.
myFunction();
myFunction1();
function myFunction(){
return 'true';
}
function myFunction1(){
return 'false';
}