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

Tell us what’s happening:

Goo day Sir/Mam
Kindly help me sort out this code. I have tried but it did not pass. Thanks.

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 + " dodge. ";

}

// 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/126.0.0.0 Safari/537.36

Challenge Information:

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

Hi there!
Give a space after the word the" and remove dodge." in the end of string.

Thanks, hasanzaib1389. it work out

Your welcome. Happy coding.

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