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>
Javascript Console
- Open the Chrome browser
- Press F12
- Go to the ‘console’ tab.
- Enter console.log(‘test’)
- Press the enter key
Output