By another name level error - language JavaScript

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

hi no bugs for me but try this code

var enemy1 = hero.findNearestEnemy();

var enemy2 = hero.findNearestEnemy();


try this: # Change the names of variables to make gems appear!

Mod edit: solution removed

Hi @Phalat_Phanphom, welcome to the CodeCombat Discourse! :tada:
Thank you for helping, but please could you not post complete solutions as it’s not the purpose of the forum. It would be great if you could give advice and tips to people, if the topics are recent (less than 3 months, this one’s 4 years old); if you could remove that post (click on the three dots at the bottom of the post and then click the bin) that would be great.
Thank you very much and welcome to the forum.