Tell us what’s happening:
I did as what is requested at step 120 but I can’t understand what is the real error here.
### Your code so far
text.innerText += "You attack it with your " + weapons[currentWeapon].name + ".";
### The error
Sorry, your code does not pass. Hang in there.
You should add the string You attack it with your
to the text.innerText
value. Remember that spacing matters.
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Challenge Information:
Learn Basic JavaScript by Building a Role Playing Game - Step 120
Learn to Code — For Free
you need to have a space before “you”
it would be " You attack it with your " (spaces at the beginning and the end)
3 Likes
Thank you mate, I tried it at first time but didn’t work. Now it works fine. Maybe there was a small bug.
2 Likes
of course ^^ it didn’t work for me at first too, turns out it was just that haha
The lack of explanation in this JavaScript course compared to how the HTML and CSS course was is throwing me for a massive loop. I nearly gave up on this step. I feel like I’m having to look up forums or consult ChatGPT (which honestly kinda sucks) with every step in this course because of how poorly it’s being explained.
1 Like
I think it honestly really helps to do the legacy part first. The exercises in the new course seem to lack a lot of explanation.
yeah. i agree completely, the wording really does make it difficult and confusing to understand, frustrating even.
system
Closed
June 27, 2024, 9:01pm
8
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.