What Can I do with a Function?
Functions can be
So we have three ways to declare functions
the first of which is called the functional statement. Key thing to remember about the functional statement is that by default it is declared in the global scope (which is usually the parent document window in most cases)
Just what the heck is a Closure?
Anonymous, you mean like a Jon Doe or like that Hacker group? Or like the horse with no name?
|A horse with no name….?|
Well, if I had to pick I’d say they are somewhat closer to the horse…. maybe
Also often used to act as events within another function.
A common example you’d commonly see out in the wild would be the jQuey Ajax Request function