11 lines
197 B
Plaintext
11 lines
197 B
Plaintext
|
// a function
|
||
|
function myFunction()
|
||
|
{
|
||
|
var x = "", i;
|
||
|
for (i = 0; i < 5; i++)
|
||
|
{
|
||
|
x = x + "The number is " + i + "<br>";
|
||
|
}
|
||
|
document.getElementById("demo").innerHTML = x;
|
||
|
}
|