Coding

JavaScript Keywords – JavaScript Tutorial

Task

How to Declare JavaScript Keywords

Description

JavaScript ‘keywords’ are used to identify the actions to be performed.
The ‘var keyword’ tells the browser to create variables:

Example

<p id="demo"></p>
<script>
var x, y;
x = 15 + 16;
y = x * 10;
document.getElementById("demo").innerHTML = y;
</script>
Try It Yourself - Online Compliler >>