Created
July 6, 2018 13:20
-
-
Save oscarcarlsson/1b9067b36e578bb94f8b8285342a652f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // 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