Can anyone see what the error is this array is please (step 109, role-playing game JS)?
The ‘name’ is struck out and faded out respectively in the second and third objects, but I’m not sure why as the property can be repeated in other objects?
I am unable to link it through the help option as it was not available, but I will post it here separately:
Step 109
Now you can start the code to fight monsters. To keep your code organized, your fightDragon function has been moved for you to be near the other fight functions.
Below your weapons array, define a monsters variable and assign it an array. Set that array to have three objects, each with a name, level, and health properties. The first object’s values should be slime, 2, and 15, in order. The second should be fanged beast, 8, and 60. The third should be dragon, 20, and 300.