Question:What is the difference between setInterval and setTimeout? 

Answer setInterval: The setInterval() method repeats a script action every so many milliseconds. initiating the script after the specified number of milliseconds. setTimeout: The setTimeout() method works the same as setInterval(), except that it does not repeat the script. 

+ Report
Total Preview: 1163
What is the difference between setInterval and setTimeout?
Copyright © 2024. Powered by Intellect Software Ltd