1$(document).ready(function() {
2
3}); // end ready
1$(document).ready(function() {
2
3});
tells the function to wait until the HTML for the page has completely loaded before running the JavaScript code placed inside it.
1$.getJSON(flickerAPI, flickrOptions, displayPhotos);
2.getJSON(url, data, callback);