**Tell us what’s happening:**

What it’s supposed that is the expected output?. Can you give me some examples?

**Your code so far**

```
let doors;
//initDoors represents the first time that the doors are checked
let size = 100;
function initDoors(value){
doors = Array(value).fill(true);
}
function passTheDoors(value){
doors.forEach((n, index) => {
//evaluating doors. Ex: 2th pass: only 2, 4, 6, ...10.
if(index % value === 0 && index !== 0){
doors[index] = !doors[index];
}
});
}
function getFinalOpenedDoors (numDoors) {
initDoors(size);
for(let i = 0; i < size; i ++){
//checking the doors
passTheDoors(i);
}
return new Array(doors[numDoors - 1]);
}
```

Any clues?. Thanks

**Your browser information:**

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 OPR/56.0.3051.99`

.

**Link to the challenge:**

https://learn.freecodecamp.org/coding-interview-prep/rosetta-code/100-doors/