Learn Basic JavaScript by Building a Role Playing Game - Step 46

Tell us what’s happening:

Describe your issue in detail here.
I changed the text but it’s not working???

Your code so far

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;
}

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

You are changing your button text. It says to modify the innerText property of the text, add a new line of code, access your text property with dot notation like your buttons, and change the innerText.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.