Open In App

Web technologies Questions | Node.js Quiz | Set-3 | Question 12

Which below method is used to run an asynchronous function and get a callback in the node.js ?
(A) util.format()
(B) util.inherits()
(C) util.callbackify()
(D) util.debuglog()

Answer: (C)
Explanation: The util.callbackify() is used to run an asynchronous function and get a callback in the node.js it comes into the util module It is run an asynchronous function. It takes parameter as async_function
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :