Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Javascript
obtain function name
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Matt Kruse, post: 4949270"] You do, but you just don't realize it. Functions don't have names. When you say: function foo() { } you are just creating a function object, and assigning a reference to it by the name of 'foo'. The function object itself knows nothing about 'foo' - it's just the name you as a programmer gave it so you could refer to it. That may be getting a little deeper than you really are interested in, but in order to really answer the question you need to understand how this stuff works and why you may never get a solution that you're happy with. Matt Kruse [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Javascript
obtain function name
Top