JavaScript keywords are used to identify actions to be performed. The
var keyword tells the browser to create a new variable. For example, the following script would give a value to y of 110:
HTML file:
Displayed by browser:
<h2>The var Keyword Creates a Variable</h2>
<p id="demo"></p>
<script>
var x = 5 + 6;
var y = x * 10;
document.getElementById("demo").innerHTML = y;
</script>