1.

What is the command used for debugging output in Node?(a) print();(b) console.log(…);(c) debug(…);(d) execute(…);I had been asked this question during an interview for a job.My doubt is from Asynchronous I/O with Rhino topic in chapter Server-Side and Client-Side Scripting of JavaScript

Answer»

The correct ANSWER is (B) console.log(…);

EXPLANATION: Console.log() prints the content in the argument on to the output SCREEN. Node defines console.log() for debugging output like browsers do.



Discussion

No Comment Found

Related InterviewSolutions