As we know there is no out function in a JavaScript ,so we often print by a control of HTML.
chapter1
name:#
<html>
<body>
<h1> a HTML </h1>
<p id ="demo"> a paragraph </p>
<script>
document.getElementById("demo").innerHTML = "this has been changed ";
</script>
</body>
</html>
chapter2
name:#
<html>
<body>
<h1> a HTML </h1>
<p> a paragraph </p>
<button onclick="myFunction()"> click me </button>
<script>
function myFUnction(){
document.write(Date());
}
</script>
</body>
</html>
chapter3
name:consolo
<html>
<body>
<h1> my HTML </h1>
<p>
ues the F12 to debug ,click the consolo in windows dapped
</p>
<script>
a=5;
b=6;
c=a+b;
consolo.log(c);
</script>
</body>
</html>