From 3cdee5859d73b5ef4fad6a6935520fc4570e5018 Mon Sep 17 00:00:00 2001 From: Hein Htet <90121395+JamesCartar@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:24:31 +0630 Subject: [PATCH] fix(curriculum): optional parenthesis around parameter in Platformer Game - Step 96 (#53023) --- .../64cb34c01b3d856a9a59261d.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md index fed8c1d09b5..2cf84c157fc 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md @@ -32,7 +32,7 @@ assert.match(code, /\s*const\s+checkpoints\s*=\s*checkpointPositions\.map\s*\(\s You should implicitly return a new `CheckPoint` instance. ```js -assert.match(code, /\s*checkpointPositions\.map\s*\(\s*checkpoint\s*=>\s*new\s+CheckPoint\s*\(\s*checkpoint\.x\s*,\s*checkpoint\.y\s*\)\s*\)\s*;?/); +assert.match(code, /\s*checkpointPositions\.map\s*\(\s*\(?checkpoint\)?\s*=>\s*new\s+CheckPoint\s*\(\s*checkpoint\.x\s*,\s*checkpoint\.y\s*\)\s*\)\s*;?/); ``` # --seed--