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





Javascript Console




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

Output


Picture showing the output of console.log method in javascript



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

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250