Issues with Interactive Website: Push Menu app.js


#1



I am having difficulty getting passed this step in the lesson. It keeps giving me the following error:

Oops, try again. Add the line $(document).ready(main)

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


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

you added far more code then required in the exercise, which is why you don't pass