LearnFast.Ninja

JavaScript write to console log and debug with ie firefox and chrome

On the script element write console dot log then write your string. Test the working example code and see result at Internet Explorer, Firefox and Chrome. This is how to javascript trace firebug.

Step 1: On the script element write console dot log then write your string.

console.log('Test console log');


Working example:

<html>

<head>

    <title>Console</title>

    <script type="text/javascript">

        console.log('Test console log');

    </script>

</head>

<body></body>

</html>


Internet Explorer Result: 


Firefox (using Firebug) Result:


Chrome Result: 


Tags

javascript

console log