Uncaught SyntaxError: Unexpected identifier


#1



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

Uncaught SyntaxError: Unexpected identifier

    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"
    
$('body').animate({
    left: "0px"
}, 200);
});
};
$(document).ready(main);


#2

Hi you didn't open these function with {

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

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

and it's missing something here

$('.menu').animate({
    left: "-285px"