Which code executes say Hello once, two minutes from now?

Refer to the code below:

letsayHello = () => {

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

};

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

Answer: A

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments