Merge pull request #241 from phanan/onload_vs_ready

Added a JS q regarding window.onload and $(document).ready()
This commit is contained in:
Rich Gilbank 2015-01-29 12:53:00 -05:00
commit 92747b331c
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ duplicate([1,2,3,4,5]); // [1,2,3,4,5,1,2,3,4,5]
* What is `"use strict";`? what are the advantages and disadvantages to using it?
* Create a for loop that iterates up to `100` while outputting **"fizz"** at multiples of `3`, `"buzz"` at multiples of `5` and **"fizzbuzz"** at multiples of `3` and `5`
* Why is it, in general, a good idea to leave the global scope of a website as-is and never touch it?
* Why would you use something like the `load` event? Does this event have disadvantages? Do you know any alternatives, and why would you use those?
#### jQuery Questions: