Which of the following method can be used with any of the HTTP verbs: get, set, put, or delete?

7. Which of the following method can be used with any of the HTTP verbs: get, set, put, or delete?

  1. app.get(route, callback)
  2. res.send()
  3. app.listen(port, [host], [backlog], [callback]])
  4. app.method(path, handler)

Answer: D) app.method(path, handler)

Explanation:

app.method(path, handler) method can be used with any of the HTTP verbs: get, set, put, or delete.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.