Examveda
Examveda

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.

Join The Discussion

Related Questions on Server Side and Client Side Scripting