1.

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 iterationThe question was posed to me by my school teacher while I was bunking the class.The above asked question is from JavaScript in Web Browsers in portion Server-Side and Client-Side Scripting of JavaScript

Answer»

Correct answer is (b) Register a FUNCTION to be INVOKED after a certain time

Easy 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.



Discussion

No Comment Found

Related InterviewSolutions