Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Where await can go wrong
async function() {
let likeCount = 0
for(let one of many) {
likeCount = likeCount + (await fetch(`/users/${one}`)).response.likes
console.log(`There are ${likeCount} likes.`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.