Which of the following function launches the Koa application and listens for incoming HTTP requests?

16. Which of the following function launches the Koa application and listens for incoming HTTP requests?

  1. app.port
  2. Listen.port
  3. app.port(listen)
  4. app.listen(port)

Answer: D) app.listen(port)

Explanation:

app.listen(port) function launches the Koa application and listens for incoming HTTP requests.

Comments and Discussions!

Load comments ↻






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