Build a Festival Crowd Flow Simulator step 30

It says I’m logging the wrong thing to the console but I don’t see it…

console.log("\nTick " + (tickIndex + 1));
for (gate in gates) {
handleGateAtTick(gates, gate, tickIndex, throughputSummary);
tickIndex++;
}

https://www.freecodecamp.org/learn/javascript-v9/workshop-festival-crowd-flow-simulator/step-30

hello!

Since gates will be an array, are you sure about the for…in loop? Please make sure to declare the iteration variable of your loop.

tickIndex should be incremented after the inner loop.