Can someone help me by inspecting my code and let me know why it does not pass the challenges.

Thanks

```
function smallestCommons(arr) {
arr = arr.sort((a,b) => a-b);
var len = arr[1] - arr[0] + 1;
var cmmd = arr[arr.length - 1] * arr[arr.length - 1];
var rangeArr = new Array(len).fill(arr[0]).map((x,ind) => x + ind);
var tester = rangeArr.every(x => cmmd % x == 0) ? false : true;
while (tester) {
cmmd ++;
tester = rangeArr.every(x => cmmd % x == 0) ? false : true;
}
return cmmd;
}
smallestCommons([1,5]);
```