function goStore () {
button1.innerText = “You enter the store.”;
button2.innerText = “You enter the store.”;
button3.innerText = “You enter the store.”;
button1.onclick = buyHealth;
button2.onclick = buyWeapon;
button3.onclick = goTown;
}
text
is an element you have captured in the first few lines of code. For this step you should not change the innerText of the buttons
1 Like
thank you so much, it worked