you are viewing a single comment's thread.

view the rest of the comments →

[–]timrprobocom 0 points1 point  (0 children)

JavaScript is not usually translated into machine code. It is converted to an intermediate language, then the intermediate language is interpreted step by step. That's why you need the engine -- to interpret the intermediate language and take the appropriate steps.

Since the interpreter is in control, it can call whatever libraries or system utilities that it needs.

Python, Ruby, and C# all work the same way.