Need help with step 37 of RPG game

Hi.

I just did that and my code isn’t being passed as correct.

let goStore = button1.onclick;

Hi @SoftLifeEnthusiast !

Welcome to the forum!

I moved your reply to its own post.

You have it backwards.

You need to remove the let keyword and assign goStore to button1.onclick

For assignment, what is on the right gets assign to what is on the left

For example

variableName = 'this value is assigned to the variable'

Hope that clears it up :+1:

1 Like

Without using let it gives
“ReferenceError: assignment to undeclared variable goStore”

I responded in your post here on how to fix the issue

1 Like

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