Derek Hatchard blogs on
Church Radius Blog


Feed Yourself:


Subscribe in Bloglines

Add to Google

Subscribe by Email:


.NET Experts on Tap
About ArdentDev.com
Ardent Sites
Ask the Experts
Careers
Consulting and Mentoring
Contact Ardent
News & Noteworthy
Portfolio
Writing


On this page....

Send mail to the authors Email Us

Archives

Navigation

Categories
 Code
 Tools

Disclaimer
The opinions expressed in this site are those of the individual authors and do not necessarily represent the official view of Ardent Development nor its employees, subsidiaries, partners, or customers.

© Copyright 2008, Ardent Development

Powered by: newtelligence dasBlog 1.8.5223.1



 Wednesday, January 04, 2006

   
     

JavaScript is one of those technologies that you can use for years knowing only very little about it.  Do you know what the following <script> block will do?  Post your guess as a comment before you test it out!

<script>

(function()
{
  function A() { document.write(A) }

  A();
})()

</script>

Posted by Derek Hatchard 1/4/2006 8:31:50 PM (Atlantic Standard Time, UTC-04:00)
#   Disclaimer  |  Comments [4]  | 
1/5/2006 12:09:07 AM (Atlantic Standard Time, UTC-04:00)
function A() { document.write(A) }
1/5/2006 11:24:21 AM (Atlantic Standard Time, UTC-04:00)
I had to try it out to see what happened. Derek are you going to post the rational behind the result?

1/5/2006 12:39:55 PM (Atlantic Standard Time, UTC-04:00)
Yes, I will post an explanation in a few days. I want to give people a chance to think it through first. :-)
1/9/2006 7:38:19 AM (Atlantic Standard Time, UTC-04:00)
Nice puzzle. Thanks.
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

 
© 2005 Ardent Development Solutions