**Tell us what’s happening:**

**Your code so far**

```
[spoiler]
function orbitalPeriod(arr) {
var GM = 398600.4418;
var earthRadius = 6367.4447;
var newArr = []; //gives me a empty array
for (var i = 0; i < arr.lenght; i++) {
var results =
Math.round(2*Math.PI*Math.sqrt(Math.pow(earthRadius+arr[i].avgAlt,3) / GM));
newArr.push({name: arr[i].name, orbitalPeriod: results }); //Loops number times in the array and computes the eqution.
}
return newArr;
}
orbitalPeriod([{ name: "sputnik", avgAlt: 35873.5553 }]);
```

[/spoiler]

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0`

.

**Challenge:** Map the Debris

**Link to the challenge:**