A

Admin • 833K Points
Coach

Q. 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"); });
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

The above code snippet says hello one second from now.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.