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

Tell us what’s happening:

Describe your issue in detail here.
Change the innerText property of the text to be You enter the store. .

Been stuck and not understanding what it needs from me. I need the answer itself not a hint to understand please

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;
innerText.text = “You enter the store.”;
}


### Your browser information:
### Challenge Information:
Learn Basic JavaScript by Building a Role Playing Game - Step 46
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-basic-javascript-by-building-a-role-playing-game/step-46

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.

Nvm. . . all i needed was to flip it in the end. . .

3 Likes

Take a look at your property innerText.text

1 Like

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