Don't know what's wrong


#1

The article won't open. And it's telling me there's some type of syntax error. What's Wrong?

This is the Syntax Error: Uncaught SyntaxError: missing ) after argument list

This is the app.js code I wrote:

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

#2

Hi Dorkygirl,

You need to move the closing parenthesis ()) on line 13 up to the end of line 8, and your code should work :slightly_smiling: