**Tell us what’s happening:**

I think it true but can not passing final test.

help me, please.

**Your code so far**

```
function smallestCommons(arr) {
const check= (s , min, max)=>{
for(let i=min; i<= max; i++){
if(s %i !== 0){
return false;
}
}
return true;
}
if(arr[0]== arr[1]) return arr[0];
let max= Math.max(arr[0], arr[1]);
let min= Math.min(arr[0], arr[1]);
let s= max;
while(!check(s, min, max)){
s+=max;
}
return s;
}
```

**Your browser information:**

User Agent is: `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36`

.

**Link to the challenge:**

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/smallest-common-multiple/