From ee681ff4ad4482952ea08fe1fbbc1cdb81e40136 Mon Sep 17 00:00:00 2001 From: Niraj Nandish Date: Thu, 5 Jun 2025 23:31:11 +0530 Subject: [PATCH] chore(curriculum): remove before user code in RPS game (#60723) --- .../66d085d37aeffce2ef786de3.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/workshop-rps-game/66d085d37aeffce2ef786de3.md b/curriculum/challenges/english/25-front-end-development/workshop-rps-game/66d085d37aeffce2ef786de3.md index e0e36cbd50a..6f47673f5dc 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-rps-game/66d085d37aeffce2ef786de3.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-rps-game/66d085d37aeffce2ef786de3.md @@ -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