Valid JS-Dev-101 Dumps shared by ExamDiscuss.com for Helping Passing JS-Dev-101 Exam! ExamDiscuss.com now offer the newest JS-Dev-101 exam dumps, the ExamDiscuss.com JS-Dev-101 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com JS-Dev-101 dumps with Test Engine here:
A developer has an isDeg function that takes one argument, pts. They want to schedule the function to run every minute. What is the correct syntax for scheduling this function?
Correct Answer: B
setInterval(fn, delay, arg1, arg2, ...) calls fn every delay ms, passing extra arguments. To call isDeg every 60 seconds with "cat": setInterval(isDeg, 60000, 'cat'); Why others are wrong: A/D: isDeg('cat') is called immediately, and its return value is scheduled, not the function. C: setTimeout runs once after 60 seconds, not repeatedly. ________________________________________