What wiil be the code at step 46 in java script project

Now you need to modify your display text. Change the innerText property of the text to be You enter the store..

Can you provide your code? Its easier for us to work with your code provided.

1 Like

yes thank you
function goStore() {
text.innerText = “You enter the store…”;
button1.innerText = “Buy 10 health (10 gold)”;
button2.innerText = “Buy weapon (30 gold)”;
button3.innerText = “Go to town square”;
button1.onclick = buyHealth;
button2.onclick = buyWeapon;
button3.onclick = goTown;


plz can you give the solution for that

I can’t give a direct answer miss, but we’ll work it out together, I’m here to guide you.

So, this string You enter the store… is not what the lesson has provided for use, the lesson has provided this string You enter the store. instead. I suggest you use it.


sorry i can’t understand

The last dots at the end of the string, were they part of the instructions?

1 Like

okay thank you so much