Skip to content

Instantly share code, notes, and snippets.

@ardydedase
Created November 25, 2020 13:12
Show Gist options
  • Select an option

  • Save ardydedase/e4adf90d8b7ed788f7d83ff088f74481 to your computer and use it in GitHub Desktop.

Select an option

Save ardydedase/e4adf90d8b7ed788f7d83ff088f74481 to your computer and use it in GitHub Desktop.
# assuming that the number of matches is 50 and wins is 4
const getWinningPercentage = (): number => 4 / 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment