Skip to content

Instantly share code, notes, and snippets.

@b17z
Forked from nrl240/day6-exit-ticket.md
Created July 5, 2020 05:22
Show Gist options
  • Select an option

  • Save b17z/5180c755fb499a6da55b2eda81c66c38 to your computer and use it in GitHub Desktop.

Select an option

Save b17z/5180c755fb499a6da55b2eda81c66c38 to your computer and use it in GitHub Desktop.
Exit Ticket: Day 6 - Express and Handling Asynchronous Code

Exit Ticket: Day 6 - Express and Handling Asynchronous Code

In your own words, what is a server?

What is the purpose of the package.json file in a Node project?

  • Store a list of dependencies for the project
  • Give the project a name
  • Store metadata about the project
  • All of the above ☑️
  • None of the above
  • Reference:

What is Express?

Which of the following statements are true about Express Middleware?

  • An example of it could be app.use ☑️
  • It happens between the request and response ☑️
  • Only one middleware function can be called per request-response cycle
  • An example of it could be app.get
  • It sometimes runs after the response is sent
  • A function that receives the request and response objects of an HTTP request/response cycle (i.e. (req, res, next) => {...}).

What is a Promise?

  • An object that represents the eventual completion of an asynchronous operation and its resulting value
  • Reference:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment