Uncaught SyntaxError: Unexpected identifier


#1

https://www.codecademy.com/en/courses/web-beginner-en-zmn0b/0/5?content_from=make-an-interactive-website%3Ayour-first-program#

I keep getting an error of "unexpected identifier." I've searched through the code using the hint several times. I've also started from scratch to re-write the code. The same error keeps coming up. Help please! What am I missing?

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

$(document).ready(main);

#2

@megansawkar,
You are missing the opening-curly-bracket-{
in

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