Vidyalelo
JavaScript · Q1

Document Object Model And Event Handling

Programming · JavaScript · question 1

Q1

Which function among the following lets to register a function to be invoked once?

A.
setTimeout()
Answer
B.
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.