level 2
<html>
<head>
<meta charset="utf-8">
<title>Lab 14c</title>
</head>
<body>
<script>
var index = prompt("Please enter a number","");
// Create the HTML list
document.write("<ol>");
for(var index=1;index<=10;index=index+1)
{
// add the next list item
document.write("<li>List item " + index + "</li>");
}
document.write("</ol>");
</script>
</body>
</html>
这是我写的,不管输进什么数字但每次都都这样子


