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

Tell us what’s happening:

I don’t what can be possibly wrong, I checked the space in the string and everything, I did reset the exercise and nothing

Your code so far

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

/* file: styles.css */

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

function dodge() {
    text.innerText = "You dodge the attack from the " + monsters[fighting].name;
}


// 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/130.0.0.0 Safari/537.36 Edg/130.0.0.0

Challenge Information:

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

your code actually worked for me. Can you click Reset and then just copy the one line of code from here that has the string ?

1 Like

Wow it worked, I don’t know what was happening, Thanks a lot

1 Like

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