Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does console.log go by default?

Tags:

javascript

If I don't install firebug or its equivalent in other browsers, where do javascript console.log statements go?

How is it that the language has this built in function if there's no built-in place for the output?

The ideal answer gives some insight into how console.log works-- what the console object is and what it's doing DOM-wise or elsewise to find a place for output.

like image 362
temporary_user_name Avatar asked May 20 '26 03:05

temporary_user_name


1 Answers

The console object is not part of the language. It is supported by browsers natively (like Chrome and newer Firefox versions) or added by plugins (like Firebug).

There is no "default" behaviour. If you want to know how console could be implemented manually, have a look at Firebug Lite.

like image 141
Felix Kling Avatar answered May 22 '26 15:05

Felix Kling



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!