You have to either commit to using a for loop, or a while loop. At the moment you’re trying to use both.
and:
You’re not incrementing enemyIndex so “enemy” will never change. I recommend using a while loop. If you can’t remember how to do it you can look back at older levels.