I am trying to solve question below:

> 
> "Using a loop, write a function getTheRange which finds the range (difference between high and low) of arr. The value returned should be an array with the low, high, and range."
> 
> 
> 

My Code is Below:

```
const getTheRange = arr => {
  const newArray = []
  let range = 0

  const low = Math.min(...arr);
    newArray.push(low)

  const high = Math.max(...arr);
    newArray.push(high)

  for (let i = 0; i < arr.length; i++) {
     range = high-low;
     newArray.push(range)
   }

   return newArray;
}

console.log(getTheRange([3, 2, 5, 4, 7, 9, 10])); // expect log [2, 10, 8]

```

I do get my low min and range values ([2, 10, 8, 8, 8, 8, 8, 8, 8]), problem is that my range keeps repeating. My guess is due to the loop. But I honestly ran out of ideas on how to stop it from repeating. Any help is greatly appreciated!