Tell us what’s happening:
I’m not finding the instructions to be very clear here, and the other thread on this lesson has been locked and doesn’t clarify. I’ve modified every button, created a new text object, I have no idea where in this function i’m supposed to modify the text
Your code so far
/* User Editable Region */
function goStore() {
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;
text.innertext = "You enter the store.";
}
/* User Editable Region */