Whiles and do: 10 what wrong with the code


#1

var a = 0
var getToDaChoppa = function(){
// Write your do/while loop here!
do{
console.log("bc");
};while(a = 1)

};
getToDaChoppa()


#2

@callumdunlop

Look at your code closer. You forgot many semicolons.


#3

Thank you for pointing that out but the problem was that when i pressed save and submit it said unexpected token. Any ideas?


#4

Hi you should inscrease it to arrive to 1 so under your console.log inside your do { } add a++
And inside your while() put a equale with ===