Q1
Which function among the following lets to register a function to be invoked once?
A.
setTimeout()
AnswerB.
setTotaltime()
C.
setInterval()
D.
none of the mentioned
Answer: Option A
Solution
Answer: Option A
Solution:
setTimeout() and setInterval() allow you to register a function to be invoked once or repeatedly after a specified amount of time has elapsed.