What is an Engine?
A JavaScript engine is a program whose main task is to read and execute code. So, the way that this program works is:
- Read the code
- Translate it into machine code
- Run that machine code
The JavaScript engines are embedded in JavaScript runtime environments such as browsers, Node.js, or even Java Runtime Environment (JRE).