Help! I want to continue on but all that comes up is: SyntaxError: missing ) after argument list


#1



var main = function() {
    $(document).ready(main);
    $('article').click($(this).children('description').show;) $('description').hide();
    $(this).children('description')
    $('article').removeClass('current');
    $('description').hide();
    $(document).keypress(function (event) {
        if (event.which === 111) {
            $('.current').children('.description').toggle();
            });
}


#2

Hi Natalie,

Your code is pretty messed up :smile: Here's what the "skeleton" of your code should look like:

var main = function() {
  $('.article').click(function() {
    // ...
  });

  $(document).keypress(function() {
    // ...
  });
};

$(document).ready(main);

...and then you'll have to reread the instructions and replace the // ... comments with the actual, expected code :slight_smile: