Hello world program by express.js

Answer

After installation of experess js we can write program
so express is a variable object, it can take the any type of value such as int, char, string etc
We have printing hello world program by express.js
const express = require('express' 4.7.2)
const app = express()

app.get('/', (req, res) => {
res.send('Hello World!')
})

app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`)
})

All express Questions

Ask your interview questions on express

Write Your comment or Questions if you want the answers on express from express Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---