Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does anyone know the history of the `console` object? The first time I ever saw it and used it was with Firebug, but it occurs to me that I don't know if Firebug invented it. Did it just decide to inject this name into the global namespace? And having it become a common API across multiple JS environments was due to its popularity in Firebug? Or was it somehow already in JS and I just wasn't aware of it up until that point?


My recollection is that you are correct; it originated with Firebug and sprouted in other browsers after that, but I would love some history around it too.

Here's console.js in 2007: https://github.com/firebug/firebug/blob/85f35d8e871783adcf9c...


I remember we had to check for its existence before using it, monkeypatching it to noop if not found.



Firefox had a Console window which displayed error messages from the very beginning. But I have no idea if you could log to it.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: