The o shortcut- where am I going wrong?


#1


https://www.codecademy.com/courses/web-beginner-en-4hxyb/0/7?content_from=make-an-interactive-website%3Ajquery-events


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

$(document).keypress(function(event) {
    if(event.which ===111) {
        $('.current').children('.description').toggle();
}

});

$(document).ready(main);

`


#2

HI it's missing the closing } of the main function

var main = function() {
    $('.article').click(function() { #open the main function
       ...
    });
    
    $(document).keypress(function(event) {
       ...
    });

} #close the main function
$(document).ready(main);