View Sidebar
Brain Teaser: What Does This JavaScript Do?

Brain Teaser: What Does This JavaScript Do?

January 5, 2006 12:31 amComments are Disabled

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>


Comments are closed