1. Native run js file depends on your browser;
When 2.nodejs run file services for the terminal;
3. Native js compatibility issues, nodejs no compatibility issues;
4.nodejs can read and write local server set up, connect to the database and so on, while the native js not do it.
Nodejs advantages: The use of intermediate layer corresponds to the project
Disadvantages: not suitable for a large number of operations