Smallest Common Multiple undefined?

My code seems to work fine in firefox or node 10, but returns undefined for the last 2 tests:

function smallestCommons(arr) {
  let divisors = arr.sort((a, b) => a - b)
  for (let i = divisors[0] + 1; i < divisors[1]; i++) {
  for (let i = 1; i < 10e10; i++) {
    if (divisors.every(n => i % n == 0)) return i

Could you help me figure out why ?

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.