2011/1/14 Amit Agarwal <[email protected]>:
> name property of a function returns its name.
>
> (function (){
> console.log(arguments.callee.name);
> })();
>
> Above code prints "(an empty string)" instead of "". Why?
>
> -Regards
> Amit Agarwal
> +91-779-822-8765
I guess you're using Firebug. If you write this in the console:
| (function (){
| return arguments.callee.name;
| })();
You'll get "". So it's only how console.log works in Firebug.
- Balázs
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]