My code isn't working what's wrong This is it var animals...
![](https://promptwaveai.blob.core.windows.net/prompt-images/494445dbb46c4809a5608efb7051c6de-details.jpg)
My code isn't working what's wrong This is it var animals...
54
0
Other
My code isn't working, what's wrong? This is it: var animals = ["elephant", "orca", "sloth"]; car counter = 1; while (counter < animals.length) { console.log(animals[counter]); }
Text Output
You're almost there! You just ned to make sure to increment the counter variable inside the loop, otherwise it will get stuck in an infinite loop.
Notes
Khanmigo