ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 116 - Certified JavaScript Developer I discussion

Report
Export

Refer to the code below:

let timeFunction =() => {

console.log('Timer called.");

};

let timerId = setTimeout (timedFunction, 1000);

Which statement allows a developer to cancel the scheduled timed function?

A.
removeTimeout(timedFunction);
Answers
A.
removeTimeout(timedFunction);
B.
removeTimeout(timerId);
Answers
B.
removeTimeout(timerId);
C.
clearTimeout(timerId);
Answers
C.
clearTimeout(timerId);
D.
clearTimeout(timedFunction);
Answers
D.
clearTimeout(timedFunction);
Suggested answer: C
asked 23/09/2024
Paula Castanheira
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first