fix(curriculum): optional parenthesis around parameter in Platformer Game - Step 96 (#53023)

This commit is contained in:
Hein Htet
2024-01-08 11:24:31 +06:30
committed by GitHub
parent 37f51bf191
commit 3cdee5859d

View File

@@ -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--