Lesson 3 Help! "Looks like there is a bug on Line 3: Unexpected token )"


#1

Hello guys,
my code looks like this:

and the system keeps telling me "Oops, try again. Looks like there is a bug on Line 3: Unexpected token )". I already posted the code from the hint there, but it still gives me the same result. Hope you can help and figure out what's still wrong here.

Thanks in advance!


#2

Hi Doapam,

Line 2 - you're missing your opening parenthesis ((). It should be like: function() { instead of function) { :)


#3

Hey zystvan,
Thanks for your message.
Can you please let me know how the full line should look like? If I'd set function in line 2 as you said, it would look like this: ...... .clickfunction() { which doesn't really look right to me.


#4

@doapam You keep everything, just add an opening parenthesis before the closing one ()):

$('.btn').click(function() {

#5

Ahhh, thanks, you're amazing!!