Q22
Why does the Node rely on event handlers?
A.
APIs are synchronous
B.
APIs are asynchronous
AnswerC.
APIs are reusable
D.
None of the mentioned
Answer: Option B
Solution
Answer: Option B
Solution:
Because the APIs are asynchronous, Node relies on event handlers, which are often implemented using nested functions and closures.