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
app.listen(). - method takes two arguments: the first is the port number to bind the server to, and the second is an optional callback function that will be executed once the server has started.