This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am franciscomdelgado on github. | |
* I am franciscodelgado (https://keybase.io/franciscodelgado) on keybase. | |
* I have a public key ASAiVJcZAqmb5vCgGDO2sK0ZbNSWZ6Uc0ANfiQuxqPVsnwo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// async await | |
const setHighScores = async ({username, numOfWind}) => { | |
try { | |
const highScoreDoc = await score.doc(userName); | |
const response = await highScoreDoc.update({numOfWins: increment}); | |
} catch (e) { | |
console.log(e); | |
} | |
} | |
// call back "hell" |