Articles → JavaScript → Console.Log In Javascript

Console.Log In Javascript






Purpose





Example




<!DOCTYPE html>
<html lang="en"
	xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script>
        console.log("Test");
        document.write("test1");
    </script>
	</head>
	<body></body>
</html>




Picture showing the output of the document.write method on the web browser

Click to Enlarge




Javascript Console




  1. Open the chrome browser
  2. Press F12
  3. Go to ‘console’ tab.
  4. Enter console.log(‘test’)
  5. Press enter.


Picture showing the output of console.log method in javascript

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, March 17, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250