Home / Programs / Writing into the browser console using JavaScript
Programming Example

Writing into the browser console using JavaScript

👁 346 Views
💻 Practical Program
📘 Step by Step Learning
Writing into the browser console using JavaScript

Program Code

<!DOCTYPE html>
<html>
<body>

<h2> Writing into the browser console</h2>
<p>Activate debugging with F12</p>

<p>Select "Console" in the debugger menu. Then click Run again.</p>

<script>
console.log(10 + 6);
</script>

</body>
</html> 

Output

no

Explanation

no

How to learn from this program

First read the algorithm, then study the program code line by line. After that, compare the code with the output and finally go through the explanation. This approach helps learners understand both the logic and the implementation properly.