Uncaught SyntaxError: Unexpected identifier


#1


Replace this line with your code. 
var main = function(){
    $('.icon-menu').click(function()
    $('.menu').animate({left: '0px'},200);
    $('.body').animate({left:'285px'},200);
    });
};

$(document).ready(main);

`


#2

@teraplayer71817,

Have a close look at the syntax of

$('.icon-menu').click(function() { ....});


#3

thanks leonhard for helping me


#4