Re: [JSMentors] function name property

2011-01-14 Thread Nick Morgan
Actually, it's not a joke, ignore that. Try this: console.log(""); It prints the same thing: (an empty string) I see that's basically what Peter wrote - sorry, I didn't read it properly the first time. On 14 January 2011 20:24, Nick Morgan wrote: > I'm guessing this is a joke on the

Re: [JSMentors] function name property

2011-01-14 Thread Peter Higgins
The "thread" I mentioned, regarding Firebug and why "(an empty string)" is displayed. http://groups.google.com/group/firebug-working-group/browse_thread/thread/2f7cff56c06b ~phiggins On 1/14/11 3:24 PM, Nick Morgan wrote: I'm guessing this is a joke on the part of the developers - can't t

Re: [JSMentors] function name property

2011-01-14 Thread Nick Morgan
I'm guessing this is a joke on the part of the developers - can't think of any useful reason why they'd do this, but they probably thought that as it was a non-standard property it doesn't matter... On 14 January 2011 16:44, Fran wrote: > I tried in FF and it does print "(an empty string)" > > >

Re: [JSMentors] function name property

2011-01-14 Thread Fran
I tried in FF and it does print "(an empty string)" On 14/01/11 16:36, Poetro wrote: 2011/1/14 Amit Agarwal: name property of a function returns its name. (function (){ console.log(arguments.callee.name); })(); Above code prints "(an empty string)" instead of "". Why? Where does it pri

Re: [JSMentors] function name property

2011-01-14 Thread Balázs Galambosi
2011/1/14 Amit Agarwal : > 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

Re: [JSMentors] function name property

2011-01-14 Thread Peter Higgins
On 1/14/11 11:36 AM, Poetro wrote: 2011/1/14 Amit Agarwal: name property of a function returns its name. (function (){ console.log(arguments.callee.name); })(); Above code prints "(an empty string)" instead of "". Why? Where does it print "(an empty string)"? It doesnt print for me anyth

Re: [JSMentors] function name property

2011-01-14 Thread Poetro
2011/1/14 Amit Agarwal : > name property of a function returns its name. > > (function (){ >     console.log(arguments.callee.name); > })(); > > Above code prints "(an empty string)" instead of "". Why? Where does it print "(an empty string)"? It doesnt print for me anything in Opera, Chrome or No