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

Tell us what’s happening:

Describe your issue in detail here.

I would like some help with this problem.
I have tried to input what is required and I still get an error

Your code so far

  button1.innerText = "You enter the store.";

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 46

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

The instructions are:

Change the innerText property of the text to be You enter the store. .

You shouldn’t be changing the text of button1.

That’s more confusing to me. Can you try and give a better example? I’ve been stuck on this step since in the morning and I d=still don’t know what to do

I even tried this

innerText = "You enter the store.";

The text variable was defined earlier in your code:

const text = document.querySelector("#text");

You should be changing the inner text of this variable. Do exactly what you did in your first post but for text instead of for button1.

I appreciate that. Thank you very much, I managed to do it