<html>
<head><title>for loop</title></head>
<body>
<script language="JavaScript">
for(i=1;i<7;i++)document.write("<H"+i+">Hello"+i+"</h"+i+">");
</script>
<script language="JavaScript">
document.write("Math.PI: "+Math.PI+"<p>")
document.write("LN2: "+Math.LN2+"<p>")
</script>
<script language="JavaScript">
array=[0,1,2,3,4,5,6,7,8,9];
document.write("use array[digit number] for call nth value: "+array[2]+"<p>");
document.write("use array.toString() to return values separated by comma
"+array.toString()+"<p>")
document.write("use array.join to replace distance between values "+array.join('-')+"<p>")
document.write("use array.reverse to reverse "+array.reverse()+"<p>")
</script>
</body>
</html>