chore(curriculum): remove before user code in RPS game (#60723)

This commit is contained in:
Niraj Nandish
2025-06-05 23:31:11 +05:30
committed by GitHub
parent 2bb4c5565c
commit ee681ff4ad

View File

@@ -11,6 +11,16 @@ If the player or computer has won the game, there should be an option to reset t
Add an event listener to the `resetGameBtn` button. Your event listener should take in a `"click"` event and a reference to the `resetGame` function.
# --before-all--
```js
let testMsg;
function resetGame() {
// this is just to test the event listener
testMsg = "Game has been reset";
}
```
# --hints--
You should add an event listener to the `resetGameBtn` button. The event listener should take in a `"click"` event and a reference to the `resetGame` function.
@@ -22,16 +32,6 @@ assert.strictEqual(testMsg, "Game has been reset");
# --seed--
## --before-user-code--
```js
let testMsg;
function resetGame() {
// this is just to test the event listener
testMsg = "Game has been reset";
}
```
## --seed-contents--
```html