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