The setTimeout() method is used to _______________
A. Make the event sleep
B. Register a function to be invoked after a certain time
C. Invoke an event after a certain time
D. Time for iteration
Answer: b
Explanation: The setTimeout(), which registers a function to be invoked after a specified amount of time. The setTimeout() method calls a function or evaluates an expression after a specified number of milliseconds.