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

i’m losing my mind here what am I doing wrong? I tried declairing goStore with var and const, i tried making it a function (just to see), I’m so lost

/* User Editable Region */

let goStore = button1.onclick;

/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

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

The thing you are changing goes on the left.

also, you shouldn’t be declaring any variables in this step

1 Like

its the other way around and remove let

1 Like

i thought we were declaring goStore, and setting it to a value of button1.onclick. thank you.

thank you. i thought we were declaring goStore, and setting it to a value of button1.onclick.

1 Like

i cannot complete it can any one explain

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.

Thank you.

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