3 ms·
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 Firebu
by Perceptes 9y ago
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?
- llimllib 9y agoMy 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/85f35d8e871783adcf9cc07f6fc584c9da6ec7d7/content/firebug/console.js https://github.com/firebug/firebug/blob/85f35d8e871783adcf9c...
- maaaats 9y agoI remember we had to check for its existence before using it, monkeypatching it to noop if not found.
- flomo 9y agoFirefox had a Console window which displayed error messages from the very beginning. But I have no idea if you could log to it.
- solidr53 9y agoNetscape debugging http://www.codestore.net/store.nsf/unid/DOMM-4UZHEY http://www.codestore.net/store.nsf/unid/DOMM-4UZHEY