javscript TUTORIAL code example
Example 1: javascript
JavaScript is a text-based programming language used both on the client-side
and server-side that allows you to make web pages interactive.
Where HTML and CSS are languages that give structure and style to web pages,
JavaScript gives web pages interactive elements that engage a user.
Example 2: javascript tutorial
<html>
<head>
<script>
document.getElementById("demo").innnerHTML = "Bye";
</script>
</head>
<body>
<div id="demo">
<p> Hello </p>
</div>
</body>
Example 3: javascript tutorial
<html>
<body>
<script language = "javascript" type = "text/javascript">
<!--
document.write("Hello World!")
</script>
</body>
</html>
Example 4: javascript
let str = 'Hello World';
console.log(str);