O shortcut what is argument list?


#1

what am i doing wrong. It says "Uncaught SyntaxError: missing ) after argument list". What is the argument list?

var main = function() {
$('.article').click( function() {
$('.article').removeclass('current');
$('.description').hide();

 $(this).addclass('current');
 $(this).children('.description').show ();

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


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