Uncaught SyntaxError: Unexpected token {


#1



https://www.codecademy.com/en/courses/web-beginner-en-GfjC6/0/1?curriculum_id=50a3fad8c7a770b5fd0007a1#


The code passes but it keeps saying that I have "Uncaught SyntaxError: Unexpected token {". How do I fix this to remove the error? Is there anything I should add or remove?


$(document).ready(function() {
    
  $('div').hide() {
      $('selector').hide(orange);
      
  });
    
});


#2

Err.. You really should just hide the 'div' which is the selector. You should have:

$(document).ready(function(){
    $('div').hide();
    });

Hope this helps! :slight_smile: