Javascript Statements

Here an example of code:

<script>
var x, y, z;  // Statement 1
x = 22;    // Statement 2
y = 10;    // Statement 3
z = x + y;  // Statement 4

document.getElementById("demo").innerHTML =
"The value of z is " + z + ".";

JavaScript Statements

A JavaScript program is a list of statements to be executed by a computer.
</script>

0 коммент.