mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-20 18:43:43 +08:00
Remove live code & console.log, leave examples as comments (ProjectEuler, Recursive).
This commit is contained in:
@ -5,7 +5,7 @@ Smallest multiple
|
||||
What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?
|
||||
*/
|
||||
|
||||
const findSmallestMultiple = () => {
|
||||
export const findSmallestMultiple = () => {
|
||||
const divisors = [20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2]
|
||||
let num = 21
|
||||
let result
|
||||
@ -18,5 +18,3 @@ const findSmallestMultiple = () => {
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
console.log(findSmallestMultiple())
|
||||
|
Reference in New Issue
Block a user