Skip to content

Instantly share code, notes, and snippets.

@bulkan
Last active July 5, 2021 04:29
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 bulkan/54e6f3d427417099b751aa32d39ee033 to your computer and use it in GitHub Desktop.
Save bulkan/54e6f3d427417099b751aa32d39ee033 to your computer and use it in GitHub Desktop.
frontend fizzbuzz
// What does the following do ?
for(let i=0; i<=10; i++) {
fetch(`https://httpbin.org/get?someParam=${Date.now()}`)
.then(res => res.json())
.then(({origin}) => console.log(`${i} - ${origin}`));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment