Building a Platformer Game - Step 72

Tell us what’s happening:

As far as I know, I’ve followed the instruction of creating an object within the array, along with an x property with a value of 500, and a y property with a value of proportionalSize(450). The error message is not giving me any sort of indication of what I am doing wrong - it’s simply telling me to do what I’ve already done.

In searching for related issues, the only question pertaining to this step looks completely different from the step that I’m on.

" You should have an object with an x property with a value of 500 and a y property with a value of proportionalSize(450) . You are using the proportionalSize() function here to make sure the y value is proportional to the screen size."

Your code so far

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

/* file: styles.css */

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

const platformPositions = [
    x: 500,
    y: proportionalSize(450),

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Learn Intermediate OOP by Building a Platformer Game - Step 72

Hello @gailedit,
You have typo mistake!

Why You need comma after your proportionalSize(450)

:woman_facepalming:t3: It’s always those little things that get me. Thank you!


You are welcome,
Little mistakes makes you learn more!
Happy Coding!

This extra comma would pass in a real app by the way, but in this exercise the solution has to follow exactly the regex it gets checked against (you can see the regex in developer tools → console). There’s no comma in the check.

1 Like