Answers for "node modules express"

12

npm express

$ npm install express
Posted by: Guest on July-31-2020
10

npm express

// npm install express
const express = require('express');
const app = express();

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

app.listen(3000,()=>{
 console.log("starting...");
});
Posted by: Guest on June-19-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

Code answers related to "Javascript"

Browse Popular Code Answers by Language