"Interpreted" does not mean that each line is executed immediately when it is read. The Javascript interpreter first reads the entire file, a process during which it parses information into executable code. Here comes the rise: between parsing and execution.
In a nutshell and very simplistic, lifting work:
- the analyzer / interpreter reads the source code into an intermediate representation
- (,
function), * var ( ), ( /undefined)
* "" , Javascript, , Javascript .
, , , . , "top", - .