04-10-2022, 07:45 AM
In order to write content in the browser console we will need the console.log() function.
As usual I will take "Hello, World!" as example.
As usual I will take "Hello, World!" as example.
Code:
<!DOCTYPE HTML>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<script>
console.log("Hello, World!");
</script>
</body>
</html>