Skip to content

Instantly share code, notes, and snippets.

@suhailgupta03
Created August 4, 2023 15:58
Show Gist options
  • Save suhailgupta03/97f1f6991817d5647c2279b53fdbbd5c to your computer and use it in GitHub Desktop.
Save suhailgupta03/97f1f6991817d5647c2279b53fdbbd5c to your computer and use it in GitHub Desktop.
setInterval(function() {
console.log("Playing MP4");
}, 1000);
// the first argument is the callback
// function
// the reason we call it as a callback
// function is because it is called back
// after a certain time interval
// the second argument is the time in
// milliseconds
// 1000ms = 1s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment