Now you need to modify your display text. Change the innerText
property of the text
to be You enter the store.
.
Hello.
Can you provide your code? Its easier for us to work with your code provided.
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?
okay thank you so much
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.