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

Tell us what’s happening:

There is a squiggly red line, below the second and 4th bracket so this could indicate that the error is there but that is probably the web page spell check due to the double identical brackets. Otherwise I have no clue. Checking forum post did not help as they refer to a different step presumably one formally having this number. I think I will have to raise an issue I was already planning to, as this happened to me on a earlier step in this program.

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

function easterEgg(update(locations[7])) {
  
}

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0

Challenge Information:

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

You can leave the easterEgg function parentheses empty. You should call the update function in the body of the easterEgg function instead.

1 Like

Did wonder if it was asking for it in the body and should have tried it but read the wording as clearing not referring to this. The unticking of the solution and almost immediate re ticking, was done as I needed to check your solution worked.

1 Like