fix(curriculum): hint and directions in RGP game step 37 (#52678)

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
Sagar Kashyap
2023-12-23 18:11:09 +05:30
committed by GitHub
parent cb4d27cc23
commit 423bf23c14

View File

@@ -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/);