Javascript Closure Sample

Javascript Closure Sample Code

The following Javascript is being executed on this page. Annoying? Yes :)
  function annoyUser()
  {
    var name = prompt("What's your name?");
    var myClosure = function(){ 
                      var d = new Date();
                      alert(name + " the time is " + d.toUTCString());
                      setTimeout(myClosure, 10000);
                    }
    myClosure();
  }

  annoyUser();
  


About this site:
This is my (Jaisen Mathai) personal site for potential employers who want to see my resume or portfolio. My ideal job would be to work as a PHP developer on a large scale consumer website. My experience is in using PHP, MySQL, Ajax and JSON. I really enjoy creative brainstorming...taking a problem apart and narrowing 100 solutions down to the best one.

Thanks for stopping by. Be sure to drop me a line.