"compiled language" and "interpreted language" are nonsensical terms.
There are python compilers, and there are C interpreters.
These are implementation strategies which can be applied to any language.
Hoisting does effectively rearrange the code so that the declarations are at the top of the scope.
See the algorithm in 18.2.1.3 of ecma-international.org/publication... for example.
JIT compilation is not part of the language specification.
I suggest reviewing the language specification, as it may clarify many of these issues for you.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
"compiled language" and "interpreted language" are nonsensical terms.
There are python compilers, and there are C interpreters.
These are implementation strategies which can be applied to any language.
Hoisting does effectively rearrange the code so that the declarations are at the top of the scope.
See the algorithm in 18.2.1.3 of ecma-international.org/publication... for example.
JIT compilation is not part of the language specification.
I suggest reviewing the language specification, as it may clarify many of these issues for you.