please i am stucked in line 46 of the code, which says Now you need to modify your display text. Change the innerText property of the text to be You enter the store. .
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;
}
I have checked some of the contributors solutions, but whenever i tried to apply them to my code am still getting error code.
Can anyone explain to a layman like me maybe line by line.
hey @adeoyeshogelola please create your own topic to ask for help
If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.
The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.