**a hint would be good**

**Your code so far**

```
function smallestCommons(arr) {
let newArr = [];
for (let i = Math.min(arr[0], arr[1]); i <= Math.max(arr[0], arr[1]); i++) {
newArr.unshift(i);
}
let answer = newArr[0] * newArr[1];
for (let i = 2; i < newArr.length; i++) {
if (answer % newArr[i] == 0) {
} else {
answer *= newArr[i]
}
}
return answer;
}
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/85.0.4183.102 Safari/537.36`

.

**Challenge:** Smallest Common Multiple

**Link to the challenge:**