**What is the problem in my code?*

**Your code so far**

```
function smallestCommons(arr) {
var newArr = [];
var max = Math.max(arr[0],arr[1]);
var min = Math.min(arr[0],arr[1]);
for (var i = min; i <= max; i++) {
newArr.push(i)
}
newArr = newArr.reverse();
var commonMultiple = newArr.reduce((x,y) => x*y);
newArr.map(function(x) {
if(newArr.every(function(y) {
return (commonMultiple / y) % x == 0;
})) {
commonMultiple = commonMultiple / x;
console.log(commonMultiple);
}
})
return commonMultiple;
}
smallestCommons([23, 18]);
```

**Link to the challenge:**

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

smallestCommons([1, 5]) should return a number.

Passed

smallestCommons([1, 5]) should return 60.

Passed

smallestCommons([5, 1]) should return 60.

Passed

smallestCommons([2, 10]) should return 2520.

Passed

smallestCommons([1, 13]) should return 360360.

Passed

smallestCommons([23, 18]) should return 6056820.

Not passed