1/13 help


#1

how do you list the console.logs from 1-5?


#2

you can manually code it like this

console.log(1);
console.log(2);
console.log(3);
console.log(4);
console.log(5);

or

//or
console.log(1,2,3,4,5);

or you can use a loop like this

// using a while loop
var i = 1;
while(i<6){
    console.log(i);
    i++;
}

//using  a for loop
//I have already defined i so
//there is no need for the first condition in the for loop
for(;i<6;i++){
    console.log(i);
}

feel free to play around with it
Click here


#3

it dose not work???????????????????????


#4

for this exercise.use the first solution


#5

I can't too.

console.log(1);
console.log(2);
console.log(3);
console.log(4);
console.log(5);

console log: "TypeError: console.log is not a function"

"Oops, try again. Your code doesn't look quite right. Check the Hint if you need help!"

Can you help me, please?


#6

Well...
So, I return to "Course Page" and when I back to this exercise, write te same code, and now accept it...


#7

Neither of the solutions work for me. Did somebody get to solve this??