Re:Ask HN: JavaScript dev environment ?
by maxanger on Saturday July 03, 2010 @02:27PM
(#1484193)
if (window.console) console.log(...);
[ Parent
| on HN ]
Re:Ask HN: JavaScript dev environment ?
by jackowayed on Saturday July 03, 2010 @02:40PM
(#1484222)
That really should be built in to console.log.
I may not be entirely sober yet but I believe the problem at hand is what happens when window.console isn't defined at all.