**Tell us what’s happening:**

I am having trouble understanding what must be done here.

I used my own kind of psuedo code bellow what i think must be done but it’s not passing

**Your code so far**

```
const range = (start, end) => {
if (end === start) {
return [start];
} else {
var numbers = range(start, end - 1);
numbers.push(end);
return numbers;
}
};
var lookup = var;
lookup [result]
/* switch statment convert into lookup
variable lookup
search vlue
connect to string result variable*/
// Sum numbers in array
const sum = (array) => {
if (array.length === 0) {
return 0;
} else {
console.log(array);
var recursion = array[0] + sum(array.slice(1));
console.log(array);
return recursion;
}
};
console.log(sum(range(1, 10)));
```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.2 Safari/605.1.15`

.

**Challenge:** Using Objects for Lookups

**Link to the challenge:**

https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/using-objects-for-lookups