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

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

Hi there!

You need a space after the word "The and a space before "attacks. Also you need to correct the .name property of the monsters array. The name property should be added after index of fighting after it’s bracket notation

Ok thanks but still it wont pass

please share your update code