Skip to content

Instantly share code, notes, and snippets.

@mushroomgead
Created October 16, 2019 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mushroomgead/1dfb550d8f184dbc2340be48b488b954 to your computer and use it in GitHub Desktop.
Save mushroomgead/1dfb550d8f184dbc2340be48b488b954 to your computer and use it in GitHub Desktop.
my challenge today
function minimalMultiple(divisor, lowerBound) {
for (i=1; i <= lowerBound; i++) {
let result = divisor * i
if (result === lowerBound || result >= lowerBound) {
return result
}
}
}
minimalMultiple(1, 239)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment