express-intro Flashcards
1
Q
How do you add express to your package dependencies?
A
npm install express
2
Q
What Express application method starts the server and binds it to a network PORT?
A
the listen method
- const express = require(‘express’);
- const app = express();
- app.listen(port, () => {do something when server starts});