我脑袋肿了 我的注释是对的吗
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>break</title>
<script type="text/JavaScript">
var mynum =new Array(70,80,66,90,50,100,89);//定义数组mynum并赋值
var i=0;
while(i<mynum.length) //条件语句、当小于总长度就执行
{
if(mynum[i]<60) //条件语句
{
document.write("成绩"+mynum[i]+"不及格,不用循环了"+"<br>"); //条件为真时打印
break;
}
document.write("成绩:"+mynum[i]+"及格,继续循环"+"<br>"); //条件为假时打印
i=i+1;
}
</script>
</head>
<body>
</body>
</html>