Question: Fill in the blanks in the below code according to the comments / / Add Dependencies const http = / / Create a server object

Fill in the blanks in the below code according to the comments //Add Dependencies
const http =
//Create a server
object that will
respond to any request with a string
const server =
// reply with the
statement
'Welcome
to Nodejs
'
10 ppints
7) :
//The server will listen on port 3000
server. listen(3000, function (){
console. log ('The server is listening on port 3000');

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!