Commonly used engines for js are: 1. "V8", the engine in Google; 2. "SpiderMonkey", the engine in Firefox; 3. "Chakra", the engine in IE; 4. "ChakraCore" , the engine in Edge; 5. "SquirrelFish", the engine in Safari.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
As a scripting language, JavaScript code cannot run independently. Usually we need to use a browser to run JavaScript code. All web browsers support JavaScript.
In addition to being executed in the browser, JavaScript code can also be executed on the server or in a device equipped with a JavaScript engine. The reason why the browser can run JavaScript code is because the JavaScript engine is embedded in the browser.
The JavaScript engine is a virtual machine that specializes in processing JavaScript scripts. It is usually included in a web browser.
Common JavaScript engines are:
V8: JavaScript engine in Chrome and Opera;
SpiderMonkey: JavaScript engine in Firefox;
Chakra: JavaScript engine in IE;
ChakraCore: JavaScript engine in Microsoft Edge;
SquirrelFish: JavaScript engine in Safari .
[Related recommendations: javascript learning tutorial]
The above is the detailed content of What is the commonly used engine for javascript?. For more information, please follow other related articles on the PHP Chinese website!