Learn Intermediate OOP by Building a Platformer Game - Step 76

Tell us what’s happening:

Don’t know what I’m doing wrong here. Guessing some syntax error with new Platform. Thanks for your help.

Your code so far

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

/* file: styles.css */

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


const platforms = platformPositions.map((platform)=> new Platform(platform.x,platform.y))
);


// User Editable Region

Your browser information:

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

Challenge Information:

Learn Intermediate OOP by Building a Platformer Game - Step 76

You’ve got an extra closing ) that’s throwing the tests off. :slightly_smiling_face:

Thanks. I actually found that before you replied, but test was still failing. Finally I had to reset the lesson, then it worked. Appreciate your help.