mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-01 17:03:30 -05:00
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:
@@ -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/);
|
||||
|
||||
Reference in New Issue
Block a user