I thought it was right ,but it could be passed


#1

hi ,why the second step :slight_smile:Call the .hide() method on the ‘#nav-dropdown’ element.

i wrote as this ,but it could not be passed ,
i thought my codes were right ,but it could be passed .
why ?

$(document).ready(() => {
$(’#nav-dropdown’).hide()
});


#2

Check your number of parenthesis. A standard $(document).ready() call is as follows:

$( document ).ready(function() {
    console.log( "ready!" );
});

See jQuery documentation on the topic.