Vidyalelo
JavaScript · Q22

Server

Programming · JavaScript · question 22

Q22

Why does the Node rely on event handlers?

A.
APIs are synchronous
B.
APIs are asynchronous
Answer
C.
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.