Uncaught SyntaxError: Unexpected token function


#1

I'm in 3. Show a Description and I'm getting the above error even though I'm passing the exercise.

Here is my code -- what am I doing wrong?

var main = function () {
$('.article').click function () {
$(this).children('.description').show();
});
};
$(document).ready(main);


#2

Remove bracket ).  


#3

Error is still there if I remove the bracket.


#4

Add a = where it's needed.


#5

I had the = but I was missing ( before function. Thanks for pointing me to that line of code.