Created
October 10, 2019 10:39
-
-
Save Reikon95/53225d0286f01a086c2882b2c4d16fdd 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
| function multiplesOf3and5(number) { | |
| let counter = 0; | |
| for (let i = 0; i < number; i++) { | |
| if (i % 3 === 0 || i % 5 === 0) { | |
| counter += i; | |
| } | |
| } | |
| return counter; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment