fix(curriculum): Updated hints of step-67 in new js course to make all tests compulsory (#53517)

This commit is contained in:
Korada Shanmukh Sai
2024-02-06 14:34:01 +05:30
committed by GitHub
parent 3ebf60dd82
commit 3f588b7266

View File

@@ -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--