In this article we discuss how to create js node server
mkdir node-server
then enter the node-server directory
type nul > app.js
To run this command app.js
node app.js
output:
👆 step 1: Import Node.js core module
step 2: creating server
step 3: handle incomming requests here..
step 4: listen for any incoming requests
step 5: console log
Output