3. Starting the for Loop


#1

https://www.codecademy.com/en/courses/javascript-beginner-en-NhsaT/0/3?curriculum_id=506324b3a7dffd00020bf661

5
10

Oops, try again. It looks like your loop printed 1, but it shouldn't have!

// Change where the for loop starts.

for (var i = 1; i < 11; i = i + 1){
console.log(i);
}


#2

What code you wrote?plz write it down

Explanation :

for (var i = 1; i < 11; i = i + 1){
console.log(i);
}

In this sum we're starting code at i = 1 and it goes to 10 loops.
You can initiate loop from any point/number. The important thing is "How many times you want to loop!"


#3

You did correctly step 1. Now you need to do step 2: change the for loop such that it will start off at 5!


#4

hey, just set the value of i= 5 as given in the instructions so it would start off with 5........
hope this helps......
still stuck.... please let me know......good luck


#5

This is the solution for this exersise:
/ Change where the for loop starts.

for (var i = 5; i < 11; i = i + 1){
console.log(i);
}


#6

i think it is correct