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

Tell us what’s happening:

Hi there

Can someone please tell me what I am missing?

thanks
Iskren

Your code so far

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

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

function attack() {
  text.innerText += " You attack it with your " + weapons[currentWeaponIndex].name + ".";
}


// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15

Challenge Information:

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

you are missing the previous content of the attack function, reset the step and add the line again without deleting anything

1 Like