command to run javascript with node js code example Example 1: run node js node name_app.js Example 2: how to run js file in node terminal node FileName.js