sarven shepherd (comp. sci. 4, javascript)
how do i complete this level? i keep receiving statement execution limit reached error if i do what it asks of me in the hints. here is my code.

// use while loops to pick out the ogre

while(true) {

var enemies = hero.findenemies();

var enemyindex = 0;

// wrap this logic in a while lo…
howdy and welcome to the forum!

take a closer look at the comment on line 13…it suggests using a different method

you are incrementing enemyindex, but not quite in the correct place…it should be the final statement in your while(enemyindex…) loop

like item 1, don’t forget the instructions in the c…
It's going to be sheer luck anyone is running that setup so try this. Break the problem down to smaller steps. If a step can't be accomplished then it's too big a step. Break it down further. its kind difficult to understand in my POV but not impossible  

imagining it while reading


can you show some codes? or samples on what you want to achive? so got the solution from support:

1) ecli task.list include\_completed=false
2) ~/bin/ergon\_update\_task --task\_uuid=9 --task\_status=aborted try battling a dragon on that space. or tapping it again. or battling a dragon on it. or combat an enemy dragon on it. (get my drift?) you should extract from the reply json object the “url”, and send a post with “{}” payload to trigger the identifier challenge verification. check rfc8555. after u take on cyrus at the hq's (headquarters) in veilstone he'll give u a masterball for dialga then he'll tell u he's going back 2 mt cronet where he first met u then go set free the 3 lake pkmn then head over 2 mt cronet from oreburgh city be sure 2 have your rock climb pkmn with u then after u catch dialga sunnyshore will be open. glad i could help and good luck :) be sure 2 save your game b4 u catch dialga start with 50 easys. if you solve those quickly, then move into mediums. hards are pretty tricky tbh i just attempt then peek answers/memorize lol if response.keys: # if the list is not empty

border.opacity = 1 # needs to be reset on each trial

if response.keys[0] == ('f'):

border.pos = [-0.3, 0]

elif response.keys[0] == ('j'):

border.pos = [0.3, 0]

else:

border.opacity = 0

else:

continueroutine = fa… the code you posted above still has the original img tag with joy.jpg, so it doesn't show what you entered that did not work.
but taking a wild guess, i would point out that javascript is case-sensitive, and so is the challenge checker, so if you accidentally substituted lower case for upper case, or vice-versa, it would not work in the code or pass the challenge. the compiler will throw the following errors:  


10: error: increment of read-only variable **k**,  


12: error: **lvalue** required as increment operand.