11. Review


for (var i=0; i <2; i++) {
console.log (i);
var myCon = false
while (myCon.length > 1) {
console.log ("whattttt");

var cheese = false
do {
console.log "WHAT"
while (cheese.length === 1);

what am i doing wrong here?

NVM got it, not sure how to delete posts..

needed to add in brackets to console.log number 2 and then
change while to just while (cheese)


The error lies in your condtitons for your while loop but to explain, go to codeacademy labs and run this snippet of code

var bool =true;


are boolean you cannot call String.length() method on boolean objects