Learn Intermediate OOP by Building a Platformer Game - Step 101

Tell us what’s happening:

I cannot figure out what is going wrong here. To my understanding, the callback function is implicitly returning the new Checkpoint class. I really don’t know what else to try.

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

const checkpoints = checkpointPositions.map((checkpoint) => new Checkpoint(checkpoint.x, checkpoint.y, checkpoint.z))

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0

Challenge Information:

Learn Intermediate OOP by Building a Platformer Game - Step 101

Hi @samwise-webdev,

It appears to be a typo. It should be new CheckPoint. The “p” needs to be capitalized.

I hope this helps. Happy coding!

5 Likes