Created
March 24, 2022 18:30
-
-
Save djom202/fc362aa5df933f5cdf59b6dd73b59345 to your computer and use it in GitHub Desktop.
Get a next multiple of 5 in this case
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
function findMultiples(x) { | |
return Math.ceil(x/5)*5 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment