Microsoft
98-375 · Question #59
Which code fragment sets up a timer that calls a function named "adjust" every second?
The correct answer is B. setInterval(adjust, 1000). See the full explanation below for the reasoning.
Question
Which code fragment sets up a timer that calls a function named "adjust" every second?
Options
- AsetTimeout(adjust, 1000);
- BsetInterval(adjust, 1000);
- CsetInterval(adjust, 1);
- DsetTimeout(adjust, 1);
How the community answered
(51 responses)- A4% (2)
- B76% (39)
- C6% (3)
- D14% (7)
Community Discussion
No community discussion yet for this question.