5/8 can't get the menu to appear


#1

Hi, I get a syntax error when I submit the code and the menu won't appear. I am very confused with this code anyways. Here's my code

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

$(document).ready(main);

Can anyone tell me what I'm doing wrong and explain it to me?


#2

Hi maartje,

The dot (.) needs to be inside the single quotes (') :slightly_smiling:


#3

thank you! that fixed it