Skip to content

Instantly share code, notes, and snippets.

@kilianc
Last active December 8, 2018 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kilianc/603d8bd3eb1dacef9719648dbcef353a to your computer and use it in GitHub Desktop.
Save kilianc/603d8bd3eb1dacef9719648dbcef353a to your computer and use it in GitHub Desktop.
Example script for Shorts App
let count = 0
let id = setInterval(() => {
if (count > 10) {
return clearInterval(id)
}
console.log(count++)
}, 1000)
console.log(Promise)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment