Намунаи 16

<html>
<head>
<meta charset='utf-8'/>
<title>Намунаи 16</title>
</head>
<body>
<script type="text/javascript">
<!--
var fruits = ["себ", "нок", "зардолу", "анор"];

document.write("<h1>Меваҳо:</h1>");
document.write("<ol>");
var x;
for (x of fruits)
document.write("<li>" + x + "</li>");
document.write("</ol>");

document.write("<h1>Меваҳо (такроран):</h1>");
document.write("<ol>");
var i;
for (i in fruits)
document.write("<li>" + fruits[i] + "</li>");
document.write("</ol>");
//-->
</script>
<p>Ба тағйирёбандаи fruits қиматҳои гуногун бахшида,
натиҷаро бинед.</p>
</body>
</html>