From 423bf23c146eada20dfa025e50bf8372aeb274d8 Mon Sep 17 00:00:00 2001 From: Sagar Kashyap <75683778+sagarkashyap989@users.noreply.github.com> Date: Sat, 23 Dec 2023 18:11:09 +0530 Subject: [PATCH] fix(curriculum): hint and directions in RGP game step 37 (#52678) Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../62a3c2fccf186146b59c6e96.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/);