Lesson # 11- Review - Loops


I am working on the review for Unit 4 - Lesson #11- write 'for' loop, 'while' loop, 'do/while' loop.  these are all codes I used in each one of the lessons for this unit and now I can't seem to get this last exercise to go.  Can someone see the missing/incorrect code?  Thanks in advance.

//'for' loop- Unit 3-Lsn 1
for(var i = 1; i= <11; i++){
//'while' loop- Lsn #2
var understand = true;

while(understand ===true){
	console.log("I'm learning while loops!");
	understand = false;

//'do/while loops- Lsn #9
var loopCondition = false;

do {
	console.log("I'm gonna stop looping 'cause my condition is " + loopCondition + "!");	
} while (loopCondition);


You are using 1 closing-curly-bracket-} to many


Thank you I got it fixed


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