The n shortcut 2


var main = function(){
        if(event.which === 111)
        else if(event.which === 110)
            var currentArticle = $(".current");
            var nextArticle =;

I cannot find the problem, help appreciated.


Hi Blondesquirrel,

I cannot find the problem

Please post the error message you're getting so we can help you.

As a start, try replacing the double quotes (") you're using in selectors ($(...)) with single quotes (').


This is what it says:
Oops, try again. It looks like the n key isn't moving to the next article. Remember to remove the 'current' class from currentArticle and place it on nextArticle.


@blondesquirrel Your code works fine for me, so I'm not sure why it's throwing an error. Could you try refreshing the page or switching browsers, please? :slight_smile:


Refreshing the page worked


This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.