Need help with this code


$(document).keypress(function(event) {

having issues with this code i do not know what to do
please help

O shortcut :(

Hi Micheliewelly,

Could you please post a link to the exercise you’re on?
Thanks :slight_smile:


Hi Zystvan

Unfortunately i’m not the person who’s supposed to post the link, but i have exactly the same problem as Micheliewelly so i’ll post my link.



@fiksatuwc That’s fine :slight_smile:
Is your code exactly the same as @micheliewelly’s? If it’s different, would you mind posting your code as well please?

Thanks :slight_smile:


var main = function(){
('.article').click(function(){ (’.article’).removeClass(’.current’);


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






Problem one is right here:

This post explains why you can’t have the dot (.) inside addClass():

Then, on what I think is line 8 in your code, this:

That only closes the function() {...}; part, not the $('.article').click(...); piece as well. You need to add a closing parenthesis ()) after the closing curly brace (}) so that line 8 looks like this:



A post was split to a new topic: What’s wrong here?