diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-algorithmic-thinking-by-building-a-dice-game/657e066025aa6c6b77f33a9b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-algorithmic-thinking-by-building-a-dice-game/657e066025aa6c6b77f33a9b.md index 6249aed15ca..cab1b1f0054 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-algorithmic-thinking-by-building-a-dice-game/657e066025aa6c6b77f33a9b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-algorithmic-thinking-by-building-a-dice-game/657e066025aa6c6b77f33a9b.md @@ -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--