Why is not working my way?


#1


https://www.codecademy.com/courses/web-beginner-en-JwhI1/2/2?curriculum_id=50a3fad8c7a770b5fd0007a1#


Oops, try again. Did you call .keydown() on $(document) and pass it function(key){} ?


$(document).ready(function() {
    $(this).keydown(function(key) {
        
    });
});


#2

hello,

try replacing $(this) with $(document)

$(document).keydown(function(key) {

});

#3

I know, I passed that. But I made ambition to pass the waypoint using alternative code :smiley:


#4