7 ms·
Thank you! Your suggestion makes sense indeed and works fine!
by q_no 12y ago
Thank you! Your suggestion makes sense indeed and works fine!
- Jtsummers 12y agoYou can also use: elevators.forEach(function(elevator, elevatorNumber) {...}); This will provide each elevator with its index in the elevators array.