5. Practise makes perfect / "SyntaxError: missing formal parameter"



When I write my code, i get this answer: "SyntaxError: missing formal parameter". I wonder what is wrong with it?

//Remember to set your condition outside the loop!
var count = 0;

var loop = function(var counter === 0; counter < 3; counter++;){
        //Your code goes here!



Look at your syntax:

Remember to define a function looks like this:

var functionName = function(optional parameter) {
// We execute the codes in the bracket

Make sure also that your while loop isn't infinite.