Uncaught SyntaxError: missing ) after argument list


#1

Hi. I compared my code against the example code given in the hint. Corrected a few things, but I still seem to be getting this "Uncaught SyntaxError: missing ) after argument list" error. Though it accepts my work, I want to find out what I'm not seeing.

var main = function() {
$('.icon-menu').click(function() {
$('.menu').animate({
left: '0px'
}, 200);

$('body').animate({
left: '285px'
}, 200);
});

$('.icon-close').click(function() {
$('.menu').animate({
left: "-285px"

}, 200);

$('body').animate({
left: "0px"
}, 200);
}};
};

$(document).ready(main);


#2

@rcormorant,

$('.icon-close').click(function() {

     $('.menu').animate({left: "-285px"}, 200);
     $('body').animate({left: "0px"}, 200);

     }//closing FUNCTION-BODY
  );//closing =click= Eventhandler