Learn Intermediate OOP by Building a Platformer Game - Step 97

Tell us what’s happening:

Sorry, your code does not pass. Don’t give up.
You should have a checkpoint parameter inside the forEach callback function.
I also tried without () and {}, same error.

Your code so far

checkpoints.forEach((checkpoint) => {


The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Learn Intermediate OOP by Building a Platformer Game - Step 97

I remember this:You almost have it, the challenge wants an arrow function without parentheses around the checkpoint argument.


Damn ty haha. I think those should be fixed so both solutions are valid


Agreed, the solution isn’t consistent with the step to draw the platforms, either, where it requires brackets around the argument to pass. Also should be able to pass it with an explicit return…right?

1 Like

Yes exactly. There are like 20+ cases of this during the curriculum that I saw. Hopefully, it will be fixed soon


This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.