Articles → JavaScript → Console.Log In Javascript

Console.Log In Javascript






Purpose





Example




<script>
 console.log("Test");
 document.write("test1");
</script>

Try It



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





Javascript Console




  1. Open the Chrome browser.
  2. Press the F12 key on the keyboard.
  3. Go to the Console tab.
  4. Write the code 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