What will be the output of the following Node.js program?
function first (value1, value2){
console.log("First Process");
setTimeout(value2, 1000, value1);
}
function second (value1, value2){
console.log("Second Process");
setTimeout( value2, 1000, value1); }
function third (value1, value2){
console.log("Third Process");
setTimeout( value2, 1000, value1); }
function handleThird(data3){
console.log("Complete:", data3); }
function handleSecond(data2) {
third(data2, handleThird); }
function handleFirst(data1) {
third(data1, handleSecond); }
first("Process", handleThird);
Correct Answer:
First Process
Complete: Process
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Node.js MCQ Questions