View Single Post
Old 11-15-2012, 11:35 AM   PM User | #10
minder
Banned

 
Join Date: Oct 2012
Posts: 81
Thanks: 0
Thanked 4 Times in 4 Posts
minder can only hope to improve
Quote:
Originally Posted by Philip M View Post
Because you have placed the call to runMe() in a separate script, and at the moment it is terminated by </script> that function does not yet exist.
Correct answer.

So old pedant saying

Quote:
JavaScript compiles all functions before it attempts actually USE the references.
is not strictly true which my example proved.

So as per his code
Code:
REALLY? <br/><br/> Think again, Minder.
the same applies to him

Last edited by minder; 11-15-2012 at 11:38 AM..
minder is offline   Reply With Quote