By another name level error - language JavaScript


#1

Hi, i was gaming the 16th level with javascript language and i don’t pass to another level because this level has bugs.

I replaced the variable names and the gems don’t appear. somebody know home pass this level?

thanks you


#2

hi no bugs for me but try this code

var enemy1 = hero.findNearestEnemy();
hero.attack(enemy1);
hero.attack(enemy1);

var enemy2 = hero.findNearestEnemy();
hero.attack(enemy2);
hero.attack(enemy2);

hero.moveDown();
hero.moveRight();
hero.moveRight();