Learn Basic JavaScript by Building a Role Playing Game - Step 113

Tell us what’s happening:

I have tried using the number of the 4th object in the array as well as the text and neither seem to work. Will post examples below

Your code so far

function goFight() {
update(fight);
}

and

function goFight() {
update(3);
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0

Challenge Information:

Learn Basic JavaScript by Building a Role Playing Game - Step 113

I think you missed this part of the instructions.

with the fourth object in locations as an argument.

Access the fourth object in your locations object using bracket notation then add it as an argument to your update() function.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.