Stuck On The O Shortcut


Can anyone tell me what I am doing wrong?


var main = function () {
$('.article').click(function() {


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



When I press run 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."



You are using a semi-colon-; in your IF ELSE-IF statement structure,
which then interrupts the flow-control.

For Javascript the semi-colon-; is an End-of-Statement indicator....!!!

Your IF ELSE-IF statement would end....

if(event.which === 111) {

Remove the semi-colon-;