What should I do?


#1

Showing unexpected token )

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);
});
});

#2

Hi you closed the main function like that

var main = function() { #open the main function

#here put your code

}; #close the main function

only with the }; instaed of });