PreCourse Material for Lambda School
1Voice90 (0)

I truly am having fun learning code. cant wait until the course actually starts.

However i am stuck here. i dont see an errror

// ------- Please begin your work below this line: -------
function exerciseOne(){
// In this exercise, write a simple 'for loop' that starts the variable 'i' at 0 and
// increases i until it reaches 6.
// Fill in the blanks in the parentheses, and then console.log(i) inside of the fo loop
for(let i=0; i<6; i++ ){
console.log("i:",i)
}

// Please write your answer in the line above.
}

function exerciseTwo(){
let count = 0;
// In this exercise write your own for loop (you can look at the syntax above).
// It should loop 10 times.
// You are given a variable called: count .
// For each loop reassign count to the current value of count + 1 .
for (let count +1; i<10; i++){
console.log("count:,i)
}
//Please write your answer in the line above.
return count;
}

You are viewing a single comment. View All
1Voice90 (0)

for the second question i put console.log(count:)
will try though. When run tests it says that it should loop for ten times incrementing the count by [email protected]