basis javascritp code example

Example 1: javascript tutorial

<html>
  <head>
  //Write your javascript code here
  <script>
    //Using this you can change content of p tag
  	document.getElementById("demo").innnerHTML = "Bye";
  </script>
  </head>
  <body>
   <div id="demo">
     <p> Hello </p>
	</div>
 </body>

Example 2: javascript

JavaScript, often abbreviated as JS, is a programming language that conforms to the ECMAScript specification. JavaScript is high-level, often just-in-time compiled, and multi-paradigm. It has curly-bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions