3/10 Uncaught SyntaxError: missing ) after argument list, Help?!


#1
var main = function(){
    $(".article").click(
        $(this).children(".description").show():
    ); 
};

$(document).ready(main);

Some help would be appreciated, I did pass the exercise but I've got problems later down the road, and I found the problem to be in this exercise.


#2

Hi Josin,

You need function() {...} surrounding everything inside the $('.article').click(...); piece of code :slightly_smiling:

Like this

$('.article').click(function() {
  // ...
});


#3

Thank you for your help.