3/14 Help!


#1

Hi here is my code for this loop
var idp = "The quick brown fox, jumps over the lazy dog";
var b= function(weird);

for(var i=0;i weird++;
return weird;
}
b(12);

It's giving me a syntax erros saying there's something wrong with my code. Can anyone see it? I can't... Thanks for your time


#2

var idp = "The quick brown fox, jumps over the lazy dog";

var b = function (weird) {
    for (var i = 0; i <= weird; i++) {
        console.log(i);
    }
};

b(12);

That is one possibility that will at least run. I haven't checked the lesson yet.

Edit: Checked the lesson and the loop example I've given should fulfill the lesson expectations. The line above (var idp) should probably be removed as it is not asked for or expected.