Skip to content

Instantly share code, notes, and snippets.

@elisechant
Last active September 12, 2017 03:56
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 elisechant/c1f3b795880a1daf46373dd5eb118db1 to your computer and use it in GitHub Desktop.
Save elisechant/c1f3b795880a1daf46373dd5eb118db1 to your computer and use it in GitHub Desktop.
scaling-timeout.js
const RETRIES = 10;
[...Array(RETRIES).keys()].forEach(i => {
const timeout = Math.pow(2, i);
console.log(timeout);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment