What is the code to print hello one second from now?
A. setTimeout(function() { console.log("Hello World"); }, 1000);
B. setTimeout(function() { 1000, console.log("Hello World"); });
C. setTimeout(function(1000) { console.log("Hello World"); });
D. setTimeout(function() { console.log("Hello World"); });
Answer: Option A
Solution(By Examveda Team)
The above code snippet says hello one second from now.Related Questions on Server Side and Client Side Scripting
What are the events generated by the Node objects called?
A. generators
B. emitters
C. dispatchers
D. highevents
What is the function used to deregister event handler ‘f’?
A. deleteAllListeners(name)
B. deleteListener(name,f)
C. removerListener(name,f)
D. removeAllListeners(name)
What is the function used to remove all handlers for name events?
A. deleteAllListeners(name)
B. deleteListener(name,f)
C. removerListener(name,f)
D. removeAllListeners(name)
Join The Discussion