InterviewSolution
Saved Bookmarks
| 1. |
Which of the following method will wait for certain milliseconds to execute a specified method?(a) setInterval()(b) setTimeout()(c) setmilli()(d) setseconds()I got this question in exam.Enquiry is from Creating a Shared Configuration File using JavaScript in division Parsing, Benchmarking and Logging of JavaScript |
|
Answer» RIGHT option is (a) setInterval() The EXPLANATION is: The setInterval() method CALLS a function or evaluates an EXPRESSION at specified intervals (in MILLISECONDS). The setInterval() method will wait a specified number of milliseconds, and then execute a specified function, and it will continue to execute the function, once at every given time-interval. |
|