Question: In the file taska.js , create, * Nodejs web server with Express that listens on port 8 0 8 1 . THe server should handle

In the file taska.js, create,* Nodejs web server with Express that listens on port 8081. THe server should handle the /phone URL. Write a handler that handles the /phone route where it can be followed by a number; for instance, /phone/1234567. Parameterize the phone number so that a seven-digit or ten-digit phone number can be used by the single handler and route. Return a string containing the HTML tag, the text "You rang number>? I where number is the phone number. Use the web browser to enter the URL and number. For instance, enter localhost: 8081/phone/1234567 in the search bar (entering dashes is optional).

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 Programming Questions!