if (typeof console != "undefined")
This way your debugging degrades gracefully and if you forget to remove a debug statement you are in the clear.
Hi. My name is Jonathan Snook and this is my site. I write about what interests me, which is usually web design, development, and technology. I'm also in the middle of a food adventure and I like whisky.
I wrote SMACSS. I tweet. Want to learn more?