Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > Could you tell ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 13 Topic 35511 of 37484
Post > Topic >>

Could you tell me why ?

by Jorge <jorge@[EMAIL PROTECTED] > May 7, 2008 at 02:19 AM

<html><head></head><body><script>

(function () {
	var watch = "Hola !";
	(function f () { alert(watch) })();
	alert(typeof f);
})();

</script></body></html>

This yields:

Safari : "Hola !", "undefined".
FireFox : "function () watch { [native code] }", "undefined"

Could you (kindly, please) tell me why :

1.- FF turns watch into a native function.
2.- f remains undefined.

TIA,
--Jorge.
 




 13 Posts in Topic:
Could you tell me why ?
Jorge <jorge@[EMAIL PR  2008-05-07 02:19:24 
Re: Could you tell me why ?
Henry <rcornford@[EMAI  2008-05-07 03:46:12 
Re: Could you tell me why ?
Jorge <jorge@[EMAIL PR  2008-05-07 04:28:32 
Re: Could you tell me why ?
Henry <rcornford@[EMAI  2008-05-07 05:27:57 
Re: Could you tell me why ?
Jorge <jorge@[EMAIL PR  2008-05-07 12:37:50 
Re: Could you tell me why ?
Jorge <jorge@[EMAIL PR  2008-05-07 13:12:45 
Re: Could you tell me why ?
Henry <rcornford@[EMAI  2008-05-08 03:19:54 
Re: Could you tell me why ?
Jorge <jorge@[EMAIL PR  2008-05-08 08:02:26 
Re: Could you tell me why ?
Henry <rcornford@[EMAI  2008-05-08 08:19:06 
Re: Could you tell me why ?
Jorge <jorge@[EMAIL PR  2008-05-08 08:29:07 
Re: Could you tell me why ?
Thomas 'PointedEars' Lahn  2008-05-08 18:10:14 
Re: Could you tell me why ?
Jorge <jorge@[EMAIL PR  2008-05-08 08:44:31 
Re: Could you tell me why ?
Henry <rcornford@[EMAI  2008-05-08 09:30:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 17:03:09 CST 2008.