7/8 Lets me complete the course but the menu won't work!


#1



Its allowing me to complete the course but when I test it on the menu it doesn't work. Any ideas as to why this is happening? Am I missing something?


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

Hi Mabrownny,

Since closing parenthesis ()) and curly braces (}) and everything else always come in the order they came when they were opened, you need to change this line:

)};

to this instead:

});

:slight_smile:


#3

A post was split to a new topic: I'm allowed to complete the course, but can't open the menu