Syntax error! But where?


#1

7 Introduction to 'While' Loops in JS Practice makes Perfect

Error message "Oops, try again. There was a problem with your syntax."
print out "SyntaxError: missing ) after argument list


var count = 0

var loop = function(){
	while(count<3){
	   console.log("I'm looping"!);
	   count++;
 	//Your code goes here!
	}
};

loop();


#2

here:

console.log("I'm looping"!);

the exclamation mark should be part of the string


#3

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