Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
|
maxanger's comments
login
maxanger
on July 3, 2010
|
parent
|
context
[–]
| on:
Ask HN: JavaScript dev environment ?
if (window.console) console.log(...);
jackowayed
on July 3, 2010
|
parent
[–]
That really should be built in to console.log.
mitjak
on July 3, 2010
|
root
|
parent
|
next
[–]
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.
ydant
on July 3, 2010
|
root
|
parent
|
prev
[–]
It can be, but only if console.log is defined in your source code. It isn't when you use Firebug, so it won't be when you're not using Firebug.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: