How do the curly brackets work {?


#1

Code academy has there java code like this xxx $(document).ready(function() {
$("#green").fadeOut(1000);
}); xxxx But when I do the lesson it never really explains about these things and how they work, and why they're needed. Code academy will even let me pass the lesson without placing them. Why?


#2

@shininguri,

$(document).ready(function() {  $("#green").fadeOut(1000); });

http://learn.jquery.com/about-jquery/
http://learn.jquery.com/about-jquery/how-jquery-works/
https://learn.jquery.com/using-jquery-core/selecting-elements/
http://api.jquery.com/fadeout/

google search
[your question] site:jquery.com


#3

thank you kindly lol