I think this is a glitch


#1


https://www.codecademy.com/courses/web-beginner-en-bay3D/1/2?curriculum_id=50a3fad8c7a770b5fd0007a1

Oops, try again. Did you put document inside $() ?


$(document).ready(function(){
$(document).ready(function);

});


all I did was copy the function thing from above
is this a glitch with the code?

Here's what the lesson says to do

Add a $(document).ready(); call in script.js. Remember, the document is special: it's not an HTML element like <p or <div, so it doesn't go in quotes.


#2

In your script.js file you just have to write

$(document).ready();

nothing else :slight_smile:


#3

ok but the lesson wants me to put something random in it

I just fixed it and got the same problem

$(document).ready(function(){
$(document).ready();

});


#4

$(document).ready(function(){
$(document).ready();

});

and what does it mean?how many times your document can be ready?


#5

what do you mean? is it a rhetorical question?


#6

Delete everything that is in the script.js, then copy and paste the instruction $(document).ready(); and that's it =)


#7

I think you didn't understand what i want to say.

the lesson wants you to put only $(document).ready(); nothing else.

right now your code doesn't make any sense.you used $(document).ready(); inside $(document).ready();.what does it mean?

read this and this to understand why we use $(document).ready();


#8

oh okay then I'll fix it


#9

my mistake, however the code was already there, that's why I added the extra


#10

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.