Code for Assignment When to 'while' and when to 'for'


#1

Hi! Can anybody help me about how to make the codes correct for this assignment?

var myCondition=true;
for(
while(myCondition){
console.log("I am lopping!");
myCondition=false;
}
for(var i=1; i<11; i++){
console.log(i);
}


#2

remove the for(