7. the "O" shortcut


#1

do you know what i've done wrong?

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


$(document).ready(main);

7. The "O" Shortcut
7. The "O" Shortcut
#2

Hi you didn't close the if statement

  $(document).keypress(function(event) {
      if(event.which === 111) {
        ....
      }
  });

#3

That is probably what is wrong it should just be var.