Learn Intermediate OOP by Building a Platformer Game - Step 79

Tell us what’s happening:

if (keys.rightKey.pressed && isCheckpointCollisionDetectionActive) {
  platforms.forEach((platform) =>  this.position.x -= 5)

}
Error message you should use the subtraction assignment operator to subtract 5 from the platform ‘s x position,

What is wrong here?

Your code so far

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

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


    if (keys.rightKey.pressed && isCheckpointCollisionDetectionActive) {
      platforms.forEach((platform) =>  this.position.x -= 5)
}


// User Editable Region
/* file: styles.css */

Your browser information:

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

Challenge Information:

Learn Intermediate OOP by Building a Platformer Game - Step 79

you have a parameter you are not using.

also, what is this in this situation? it’s not the platform