InterviewSolution
Saved Bookmarks
| 1. |
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 |
|
Answer» Right CHOICE is (a) setTimeout(function() { console.log(“Hello WORLD”); }, 1000); |
|