node.js a simple demo
1. Verify node.js is successfully installed
node --version
v10.19.0
2. Create a new JavaScript file
touch date.js
3. Open test.js for editing
vi date.js
4. Add the following code to test.js and save it
var myDate = new Date();
console.log (myDate);
5. Verify node.js is installed on the local machine and working javascript
node date.js
2023-07-25T15:08:25.039Z