How come every time i write the code it says "Oops, try again. Use the line $('.icon-menu').click(); inside your main function." when I'm doing the exact same as the example?


#1

I'm doing the same thing and when I clicked on give me a hint and did what it said it still didn't work. A little help please :slightly_smiling:


#2

Hi Mimo10,

We'll need to see your code to help you. Please see:

then post your code here :)


#3

It's probably caused by the "single vs double quotes" issue.

This code is correct but it won't pass the Codecademy's checker:

var main = function() {
  $(".icon-menu").click();
};

So we need to stick to single quotes in this course, which is rather stupid:

var main = function() {
  $('.icon-menu').click();
};

#4

That fixed it for me. You're right, that's really annoying


#5