Not getting the desired output

const express = require(“express”)
const server = express()

server.get(’/’, function(req,res,next) {
res.send(“Hello World”)
})
server.listen(2121)

i am running this code.it is same as of my instructor but after writing localhost2121 in firefox or chrome is not printing “hello world”.

it is localhost:2121
not localhost2121

i tried localhost:2121 but it aint working.

i dont know how but suddenly it has started working.i just restarted the vs code and voila.

Cool. You may ask again if you face this issue again.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.