Home »
MCQs »
Koa.js MCQs
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?
- app.port
- Listen.port
- app.port(listen)
- app.listen(port)
Answer: D) app.listen(port)
Explanation:
app.listen(port) function launches the Koa application and listens for incoming HTTP requests.