7. O shortcut - cant see the problem


#1

Can anyone see the problem with this, I certainly cant. Thanks in advance.
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 Acroft98,

You need to close your main function with a closing curly brace (}) in the empty space between those two lines.