mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-26 07:00:55 -04:00
fix(curriculum): optional parenthesis around parameter in Platformer Game - Step 96 (#53023)
This commit is contained in:
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user