The n Shortcut 2


This is my code:
var main = function() {
$('.article').click(function() {



$(document).keypress(function(event) {
if(event.which === 111) {
else if(event.which === 110) {
var currentArticle = $('.current');
var nextArticle =;




But this keeps popping up: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.

Any suggestions?


I am getting the same problem :sweat:.Any one who has cleared this task please help!


Hi Brandie,

You need to close your if statement before your else if statement, and you need to toggle the current article's description inside the if statement.

@aditya359 If that ↑ doesn't help you, could you please create a new topic with your code, a link to the exercise you're on, and the error message you're getting?
Thanks :)