Q. What is the code to print hello one second from now?
β
Correct Answer: (A)
setTimeout(function() { console.log("Hello World"); }, 1000);
Explanation: The above code snippet says hello one second from now.