Why isn't the setTimeout working?
When I ran it, it displays all the numbers instantly.
And, how do I do a clear screen before printing, so it doesn't append the results?
http://jsfiddle.net/99QKp/1/
Code:
cd = {
    countDown: function(start) {
        var i = 0;
        while (i<start) {
          setTimeout(this.update(start), 1000);
          start--;
        }
        
    },
    update: function(start) {
      document.clear();
      document.write(start);
    }
}
cd.countDown(10);