sudheerj/javascript-interview-questions

Why JS is interpretation language?

mikeblatson opened this issue · 2 comments

I read the book You don't know JS. and Kyle Simpson believes in JS compiler language, not interpreation. Can everyone proof Kyle Simpson?

Hi Mike,
I can't give you a definitive answer. But JS is a streaming programming language. JS works together in both.
You know it works based on Chrome V8. The V8 itself goes through both.
It's called JIT (Just in Time). I recommend learning this material.
V8 is actually the middle of the Interpreter and the compiler

JavaScript is still an interpreted language but it has critical phase of compiler known as syntax analysis unlike other interpreted language. Also V8 has JIT to improve the performance of code execution.

https://www.jawahar.tech/blog/javascript-compiled-or-interpreted