JavaScript Statements


Example:
<h2>JavaScript Statements</h2>

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

<p id="demo"></p>

<script>
var x, y, z;  // Statement 1
x = 4;    // Statement 2
y = 7;    // 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>

Комментарии

Популярные сообщения из этого блога

Code week

CCS Position

CSS Links