Javascript basic

By | 14/09/2014

Some basic instructions for Javascript:

<script type="text/javascript" >
var i=0;
var input = "";
do {
i++
input = input + " " + i;
} while (i < 10);
alert("INPUT:" + input);
var1 = var2 = 9; 
document.write("var1 and var2 have the same value: " + var1 + " " + var2);
</script>