8. For and While loops


#1

Seriously trying to figure out how to do this on my own without copying the answer, but I can't figure out what I've down wrong

var oranges=function(price)
while(oranges= 0){
console.log("You have no oranges!);
price=0
};

for (var dogs = 2; dogs < 4; i++){
console.log(dogs);
}


#2

there is " missing :
console.log("You have no oranges!");