Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save oscarcarlsson/1b9067b36e578bb94f8b8285342a652f to your computer and use it in GitHub Desktop.

Select an option

Save oscarcarlsson/1b9067b36e578bb94f8b8285342a652f to your computer and use it in GitHub Desktop.
// input 1,000 of 2,000
// goal is to have missed = 1000, total = 2000
const [missed, total] = missedRaw.split(" of ").forEach(function (part) {
return part.replace(',', '');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment