Stuck on 7. The O shortcut


Does anyone see whats wrong with my code? I get this message each time... "It looks like the o key isn't opening a description. Remember to toggle the current article's description inside the event handler. Look back at the instructions for the code."

var main = function() {
  $('.article').click(function() {
  $("document").keypress(function(event) {
        if(event.which === 111) {




You forgot to close your function main before calling it. Add a }; between



Getting the same message :confused:



Between the quotes and article, there should be a dot because you are selecting a class.
What you put in parameter for removeClass method should be "current". It's a class but because we know that we are manipulating with class, we don't need a dot before current. There's no () because we are not calling a function or method, we are putting in parameter a class. So remove that. Same as this line:

Hope this helped you!