Why is this crashing Practice makes perfect


#1


var x = 9;

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

loop();


#2

This is not modifying x. Write,

x *= 3

to augment x.


#3

ahh ok thanks for the help


#4

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