JavaScript Logging (05 Sep 2005)
In this article we saw how logging unveiled one of Internet Explorer’s many quirks. But more importantly, we saw how logging provides an easy way to create transparent code—you, the author, can stay on top of your data structures as they pass through each line of your code and know exactly what is happening inside the black box of a web browser’s JavaScript engine (or, similarly, your Dashboard widget). This transparency can prove invaluable since your code is likely to run in three or more different browsers that, while similar, are by no means identical.
Article URL: http://www.alistapart.com/articles/jslogging
Read 150 more articles from A List Apart sorted by
date,
popularity, or
title.
Next Article: Not all content needs to be of equal quality
|