mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-29 07:00:53 -04:00
fix(curriculum): Updated hints of step-67 in new js course to make all tests compulsory (#53517)
This commit is contained in:
committed by
GitHub
parent
3ebf60dd82
commit
3f588b7266
@@ -20,25 +20,25 @@ Lastly, update the `currentRoundText` text content by assigning it the `round` v
|
||||
You should assign `totalScore` to `totalScoreText.textContent`.
|
||||
|
||||
```js
|
||||
assert.match(code, /totalScoreText\s*\.\s*textContent\s*=\s*totalScore\s*;?/);
|
||||
assert.match(resetGame.toString(), /totalScoreText\s*\.\s*textContent\s*=\s*totalScore\s*;?/);
|
||||
```
|
||||
|
||||
You should use the `innerHTML` property to set the `scoreHistory` to an empty string.
|
||||
|
||||
```js
|
||||
assert.match(code, /scoreHistory\s*\.\s*innerHTML\s*=\s*('|"|`)\s*\1\s*;?/);
|
||||
assert.match(resetGame.toString(), /scoreHistory\s*\.\s*innerHTML\s*=\s*('|"|`)\s*\1\s*;?/);
|
||||
```
|
||||
|
||||
You should assign `rolls` to `currentRoundRollsText.textContent`.
|
||||
|
||||
```js
|
||||
assert.match(code, /currentRoundRollsText\s*\.\s*textContent\s*=\s*rolls\s*;?/);
|
||||
assert.match(resetGame.toString(), /currentRoundRollsText\s*\.\s*textContent\s*=\s*rolls\s*;?/);
|
||||
```
|
||||
|
||||
You should assign `round` to `currentRoundText.textContent`.
|
||||
|
||||
```js
|
||||
assert.match(code, /currentRoundText\s*\.\s*textContent\s*=\s*round\s*;?/);
|
||||
assert.match(resetGame.toString(), /currentRoundText\s*\.\s*textContent\s*=\s*round\s*;?/);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user