Need help on 7/10 The O Shortcut


I'm having the same issue but can't figure out where I'm going wrong:

var main = function(){
           if(event.which === 111) {


7/10 The O shortcut, can't pass exercise

Hi Jumpin Flash,

I see two problems in your code:

  1. the add/remove/toggleClass() functions don't take a dot (.) before the class name. That means use addClass('current') rather than addClass('.current'), and the same for removeClass()
  2. You need to close your $('.article').click(); thing before the $(document).keypress(); thing