Search code examples
javascriptwebecmascript-6web-development-serverjavascript-engine

How JavaScript works: inside the V8 engine?


Each Browser has own Engine for JavaScript, so if I want to learn how JavaScript works, I must learn about all the Engines?

Do the Engines translate the Code in the same Way?


Solution

  • I guess you don't have to unless you want to create enterprise Applications with thousands of users and every millisecond and roundtrip is important for you to safe real money.

    Unless you don't want to let your application perform ideal in every single engine. We are just talking about milliseconds over here.

    The overall concept over here is the same in every Engine.

    If you want to dig deeper into the understanding of how the engines process your code i recommend to check out You don't know JS. It's a book series in 6 parts which you can read online for free.

    After reading that I personally got a much better idea of how my code is processed by the engine. And i'm sure that the part were you need to differ between this engines is all about the performance in the millisecond area!

    A brief summary of how the engines differ can be found over here: Guide to JavaScript engines. You could also check out the performance guide over here: JavaScript Engine Comparison.

    They have also listet more helpful sources!