JavaScript Tutorial
Reply1. Open a text editor such as Notepad or Sublime Text.
2. Type the following code:
<!DOCTYPE html>
<html>
<body>
<h2>My First JavaScript Program</h2>
<button onclick="myFunction()">Click me</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("demo").innerHTMLtext not yet in the index