From the source code to the execution?

From the source code to the execution?
0

#1

reading from different ressources really got me lost , can you please guide me through these steps :

1- source code

2- compiler :

===> 1-Hoisting , set variables to undifined and functions to ( ??? i don’t know )
===> 2-declare a var or a function after a validation from the scope engine
===> 3-tokenize our code
===> 4-create AST
===> 5-convert source code to byte code

3- execution context (done with the compiler, now the engine turn : V8 or spidermonkey … ) :

var age = 30 ;

here the engine ;

----------------- the creation phase of the execution context --------------------

===> 1 : create a property in the "Global "variable object nammed age and set the value to undifined
===> 2 : check with the scope engine
===> 3 : determine the value of ‘this’ (unnecessary here )

------------------ the execution phase ---------------------------------------

the engine assign a LHS referrence to the age variable


#2

Can you please Guys respond i can’t really move forward from this point :


#3

This look like VBA applications.


#4

#5

thanks i ll check it