Mastering Manipulations - Set up - "Did you put document inside $() ?"


#1

Here is the code I entered in to script.js:

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

Yet, it still asks if I put "document" inside $().


#2

Hi Zachnap,

document is a variable; you can't have quotes around it.


#3

Thanks, it worked. I didn't have any idea. That is interesting cause I am not sure how I have made it all this way and the code checker has never said anything up to this point.

I have been using "$('document')" the entire time.


#4

It should've caught that before now, but it sometimes has mistakes :confused: