I am following along in jquery the missing manual and an example says to write it out like this:
$(document).ready(function() {
$('body').hide().fadeIn(1000);
});
but when I continue reading it it says your code should look like this:
$(function() {
$('body').hide().fadeIn(1000);
});
it drove me crazy because I'm a beginner, they both seem to work but I want to know which is proper