Which code executes sayHello once, two minutes from now?

Refer to the code below:

let sayHello = () => {

console.log (‘Hello, world!’);

};

Which code executes sayHello once, two minutes from now?
A . setTimeout(sayHello, 12000);
B. setInterval(sayHello, 12000);
C. setTimeout(sayHello(), 12000);
D. delay(sayHello, 12000);

Answer: A

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>