News for hackers. Stuff that matters.
Re:Ask HN: JavaScript dev environment ? by marcuswestin on Saturday July 03, 2010 @02:39PM (#1484219)
This will throw if console is not defined. Try

   if (!window.console)
Or

   if (typeof console == 'undefined')
Or

   if !('console' in window))

 N
Re:Ask HN: JavaScript dev environment ? by geocar on Saturday July 03, 2010 @02:43PM (#1484230)
Doesn't here. What are you using?