Added a JS q regarding window.onload and $(document).ready()

This commit is contained in:
An Phan 2015-01-29 16:57:36 +08:00
parent a61b114635
commit 518a4cd273
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,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?
* What is the difference between `window.onload` and jQuery's `$(document).ready()`?
#### jQuery Questions: