the difference:
1.JS runs in the browser for the user's interaction effect, NodeJS run on the server, the server's operation for example, Web servers create, manipulate the database, file operations, etc.
2.JS runs in the browser, there are multiple JS interpreter, compatibility problems, but only NodeJS V8 engine is one explanation, there is no compatibility issues
3. Both have built-in objects , custom objects , different host object
Interpretation of the word (js an example) :
js built-in objects, custom objects, objects and host
The built-in objects have javascript : Array, Boolean, Date, Function , Global, Math, Number, Object, RegExp, String class object as well as a variety of errors
There are a host of objects in javascript : JS host object is to execute the script environment object provides, for embedded in Web pages of JS, its host objects are objects provided by the browser, it is also known browser object. There are many browser object, such as Window and Documen, Element, form, image, and so on.
Custom objects have javascript : is the object of the developer's own definition