ECMAscript: is a standard, there is a standard ECMA-defined organization which provides a number of grammatical rules and semantics.
JavaScript: Script is a scripting programming language. ECMAscript is to achieve this standard, but complete JavaScript consists of three parts
node.js is a runtime environment.
The purpose is to use javascript born at the beginning of the web, executed by the browser. So out of the browser, javascript can not be implemented yet? Before nodejs appears, is indeed the case. Because only the browser have javascript interpreter! Only it knows how to execute javascript. That being the case, as long as the interpreter out, add some necessary enforcement tool library can not allow javascript from the browser performed well, so nodejs was born. Various providers have their own browser javascript interpreter, nodejs use the
chrome of the V8 javascript engine
. The question on the interpretation finished.
commonjs: refers to the js code does not run in a browser, standardized js other platforms running
reference link: https: //www.jianshu.com/p/7a5201690fb4