Skip to content

Commit

Permalink
fix(curriculum): typo in Step 117 console error (freeCodeCamp#57300)
Browse files Browse the repository at this point in the history
  • Loading branch information
itzVarsha authored Nov 23, 2024
1 parent e6520b9 commit 20f33d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Congratulations! You have completed the platformer game project!

# --hints--

You should add an `else if` clause to check is the player's `x` position is greater than or equal to the checkpoint's `x` position and less than or equal to the checkpoint's `x` position plus `40`.
You should add an `else if` clause to check if the player's `x` position is greater than or equal to the checkpoint's `x` position and less than or equal to the checkpoint's `x` position plus `40`.

```js
assert.match(code, /if\s*\(\s*index\s*===\s*checkpoints\.length\s*-\s*1\s*\)\s*\{\s*isCheckpointCollisionDetectionActive\s*=\s*false\s*;?\s*showCheckpointScreen\(\s*("|'|`)You reached the final checkpoint!\1\s*\)\s*;?\s*movePlayer\(\s*("|'|`)ArrowRight\2\s*,\s*0\s*,\s*false\s*\)\s*;?\s*\}\s*else\s+if\s*\(\s*player\.position\.x\s*>=\s*checkpoint\.position\.x\s*&&\s*player\.position\.x\s*<=\s*checkpoint\.position\.x\s\+\s*40\s*\)\s*\{\s*/)
Expand Down

0 comments on commit 20f33d8

Please sign in to comment.