Checking


#1


is the following code correct i feel that it is not correct but it says that my code is correct <>>


#2

pleas help me ???is my code corect??if not please write the missing or incorrect line


#3

what you want to do?
if you just want to hide
then dnt need function after hide
just .hide()

@vaibhav2286


#4

You are getting unexpected end of input as your function is not closed, you need });


#5

@vaibhav2286 You need to remove the function() { on line 2, and replace it with a single closing parenthesis ()) instead. The function() {...} part is only for when you want to do something after an event, like click():

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

Since the hide() function doesn't expect you to pass in a function as an argument, and you don't need to be doing that, you should make line 2 look like this instead:

$('div').hide();

...and you should be passed :slight_smile: