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”); });
I have been asked this question in an online interview.
I'm obligated to ask this question of Asynchronous I/O with Rhino in division Server-Side and Client-Side Scripting of JavaScript
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)