The prompt to this step 45 is confusing me. I honestly don’t know what to do. The prompt states the following.
Now you need to modify your display text. Change the innerText
property of the text
to be "You enter the store."
Before “you enter the store” I had “Buy 10 health (10 gold)”. Then the prompt says change the text to “you enter the store” but it’s still wrong & now I’m lost. The prompt confuses at “innerText property of the text”. Please help I’m frustrated lol
function goStore() {
button1.innerText = “You enter the store.”;
button2.innerText = “Buy weapon (30 gold)”;
button3.innerText = “Go to town square”;
button1.onclick = buyHealth;
button2.onclick = buyWeapon;
button3.onclick = goTown;
}
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.2 Safari/605.1.15