diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a3c2fccf186146b59c6e96.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a3c2fccf186146b59c6e96.md index d2d1cf0ebdc..fed8a5c2c6f 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a3c2fccf186146b59c6e96.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a3c2fccf186146b59c6e96.md @@ -15,7 +15,7 @@ You can access properties in JavaScript a couple of different ways. The first is button.onclick ``` -Use dot notation to set the `onclick` property of your `button1` to the variable `goStore`. This variable will be something you write later. Note that `button1` is already declared, so you do not need to use `let` or `const`. +Use dot notation to set the `onclick` property of your `button1` to the function reference of `goStore`. This function will be something you write later. Note that `button1` is already declared, so you don't need to use `let` or `const`. # --hints-- @@ -31,7 +31,7 @@ You should not use `let` or `const`. assert.notMatch(code, /(let|const)\s+button1\.onclick/); ``` -You should set the `onclick` property of `button1` to the variable `goStore`. +You should assign the `goStore` function reference to `button1.onclick`. ```js assert.match(code, /button1\.onclick\s*=\s*goStore/);