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

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
Sign Up Now
or Subscribe for future quizzes