**Tell us what’s happening:**

can anyone explain why the the code does not work with any arr

with minimal value more than 1?

The for loop did not evaluate the remainder divided by min. I just don’t know

the reason. according to the code, the remainder divided by min was the first one be evaluated

**Your code so far**

```
function smallestCommons(arr) {
var max = Math.max(arr[0], arr[1]);
var min = Math.min(arr[0], arr[1]);
var i = max;
for (var j = min ; j < max + 1; j++){
if (i % j !== 0) {
i += 1;
j = min;
}
}
return i;
}
smallestCommons([23, 18]);
```

**Your browser information:**

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

.

**Link to the challenge:**