ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 85 - Certified JavaScript Developer I discussion

Report
Export

Refer to the code below:

let sayHello = () => {

console.log ('Hello, world!');

};

Which code executes sayHello once, two minutes from now?

A.
setTimeout(sayHello, 12000);
Answers
A.
setTimeout(sayHello, 12000);
B.
setInterval(sayHello, 12000);
Answers
B.
setInterval(sayHello, 12000);
C.
setTimeout(sayHello(), 12000);
Answers
C.
setTimeout(sayHello(), 12000);
D.
delay(sayHello, 12000);
Answers
D.
delay(sayHello, 12000);
Suggested answer: A
asked 23/09/2024
Robert Aghten
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first