Pls help! what did I do wrong?

Here they ask me to “Create a program that loops from 5 to 10 and logs each number to the console.”

Here’s what I did

for (let counter = 5; counter < 10; counter++){
  console.log(counter);
}

Thus, they told me it’s wrong,
Can someone tell what did I do wrong?

Did you run your code? What result did you get? Was it the expected result based on what was asked?

1 Like

These numbers were what logged in the console:
5
6
7
8
9
But as result

Hello @piratemster339171845. Just an idea, but maybe CC wants you to loop through the number 5 to 10 inclusive?

3 Likes