What does this quesion even mean? Help please!

This time i can’t even understand the question.How does smallestcommons(1,5) gives 60.

``````  **Your code so far**
``````
``````
function smallestCommons(arr) {
return arr;
}

smallestCommons([1,5]);
``````
``````  **Your browser information:**
``````

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36`

Challenge: Smallest Common Multiple

The smallest common multiple between the numbers 1, 2, 3, 4 and 5 is 60

it’s not just of the two given numbers but also all the numbers in between

Thankyou @ilenia i misunderstood that as of 1 and 5 instead of numbers from 1 to 5.
These algorithms are quite tough…is it ok if i am solving these via seeing the solutions because without seeing them i can’t even get close to the solutions of my own

You should really avoid looking at solutions before having solved the algorithm yourself, you are stealing from yourself precious problem solving experience.

If you are stuck come to the forum and ask your questions

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.