Answers for "what is express in js"

6

expressjs

const express = require('express')
const app = express()
const port = 3000

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

app.listen(port, () => {
  console.log(`Example app listening at http://localhost:${port}`)
})
Posted by: Guest on February-28-2021
11

express js

$ npm install express --no-save
Posted by: Guest on April-20-2020
6

require express server.js

const express = require('express')const app = express() app.get('/', function (req, res) {  res.send('Hello World')}) app.listen(3000)
Posted by: Guest on March-19-2020
0

expressjs

var express = require('express')
var app = express()
Posted by: Guest on May-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language