Question: var express = require ( ' express ' ) ; var app = expre s ' ( ) ; app.get ( ' / ' ,
var express requireexpress;
var app expres;
app.get function req res
res.sendFiledirname I "filename.html;
In the above code segment, the app.get function req res function will be called when we send
a request for the contactUshtml page
a request for the home page or index page of a website, for example, when we type the website address in our browser and hit enter.
a request for the aboutUshtml page
a request for thehomehtml page
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
