1.

Why does Node not block while waiting for operations to complete?(a) Static(b) Asynchronous(c) Synchronous(d) RecursiveThis question was addressed to me in an international level competition.The query is from Asynchronous I/O with Rhino in section Server-Side and Client-Side Scripting of JavaScript

Answer» RIGHT CHOICE is (b) Asynchronous

Easy explanation: NODE executes the function the in one go without any waiting or blocking. Because the Node’s functions and methods are asynchronous, they do not block while waiting for operations to complete.


Discussion

No Comment Found

Related InterviewSolutions