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

Tell us what’s happening:

I’m not finding the instructions to be very clear here, and the other thread on this lesson has been locked and doesn’t clarify. I’ve modified every button, created a new text object, I have no idea where in this function i’m supposed to modify the text

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;
  text.innertext = "You enter the store.";
}

/* User Editable Region */

for those keeping track at home “change it on the styles.css document” is also not the answer

Change the innerText property

text.innertext

Check your capitalization

Sometimes it helps to just copy these statements from the example or instructions to make sure you don’t have a typo

1 Like

Ok i got it and relearned the importance of capitalization :person_facepalming:

2 Likes

I just saw that, and typed up that same message simultaneously to this one

2 Likes