Basic JavaScript - Count Backwards With a For Loop - 0sQjcr1dlDjSzl-Gf87OE

Tell us what’s happening:
Describe your issue in detail here.

Can someone please identify the problem in this code???
Your code so far

// Setup
const myArray = [];

// Only change code below this line
for (let i = 9 ; i>0 , i -= 2 ) {
myArray.push(i);
}
  **Your browser information:**

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

Challenge: Basic JavaScript - Count Backwards With a For Loop

Link to the challenge:

You have a typo
Use ; instead of ,

You simply forget a semicolon after your conditional statement.
Mod Edit: SOLUTION REMOVED
Happy Coding!

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