Which of the following code snippets will alert "Wake up!" every 10 minutes? Select all correct options.
Explanation
The setInterval() method call a function at specified intervals (in milliseconds) Example:

setInterval(function(){
console.log('a minute')}, 60000);
will print "a minute" message every 60 seconds.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
JavaScript quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes