Well, if you didn't get it by reading the post, let me just quote a
paragraph from kangax post.

First of all, function declarations are parsed and evaluated before
any other expressions are. Even if declaration is positioned last in a
source, it will be evaluated foremost any other expressions contained
in a scope. The following example demonstrates how fn function is
already defined by the time alert is executed, even though it’s being
declared right after it:

 alert(fn());

  function fn() {
    return 'Hello world!';
  }

- Kean
www.karmagination.com
twitter.com/karmagination

On Sep 14, 2:56 pm, Kean <[email protected]> wrote:
> Reading kangax's post will give you insights to how function works.
>
> http://yura.thinkweb2.com/named-function-expressions/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to