Define a function named main


#1


What is wrong?


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

$(document.ready(main);


#3

Hi Killerserpent,

Could you please tell me the error message you're getting and post a link to the exercise you're on?