9. The n shortcut 2: Code works but cannot submit


Hi All,

After clicking any article on website, n shortcut work, it jumps to next article as expected but I can't submit it? Can anyone take a look on this case.

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




Your code is Ok.
Maybe you have to do a refresh Browser

++++ reset of session *****************
As you are manipulating with objects
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser


Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


I believe the only thing you are missing is the final ";" here








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