Tell us what’s happening:
Am not getting where the mistake is can someone help me out
Your code so far
<!-- file: index.html -->
/* file: script.js */
// User Editable Region
function attack() {
text.innerText = "The"+ monsters[fighting.name] + "attacks.";
}
// User Editable Region
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Challenge Information:
Learn Basic JavaScript by Building a Role Playing Game - Step 120