-
Classes are a template for creating ____.
- Objects
-
Can a class declaration be hoisted?
- No they can't
-
How would you describe a constructor and contextual “this” to a non-technical friend?
-
Within Express, what does routing refer to?
- how an application's endpoints respond to client requests.
-
What is the difference between a route path and a route method?
- the route path defines the endpoint that the request can be made to. The route method is derived from one of the HTTP methods and is attached to the instance of the express class.
-
When is it appropriate to add next as a parameter to a route handler and what must you do if next has been passed to your middleware as a parameter?
- With multiple callback functions, it is important to provide next as an argument to the callback function and then call next() within the body of the function to hand off control to the next callback.
-
What is an Express Router?
- its an express application that provides APIs like,
.use,.get,.param, androute.
- its an express application that provides APIs like,
-
By what mean do we initialize express.Router() in an express server?
- call an instance of the
express.Router(), apply routes to it, and then tell our app to use thoose routes
- call an instance of the
-
What do we use route middleware for?
- to do something before a request is processed