Correction status:Uncorrected
Teacher's comments:
function run($year){ if(($year%4==0) && ($year%100 != 0)){ alert('是闰年'); }else{ alert('不是闰年'); } } //alert(); run(2004);
点击 "运行实例" 按钮查看在线实例
function grade($score){ if($score>=90 && $score<=100){ alert('优秀'); }else if($score>=80 && $score<=89){ alert('良好'); }else if($score>=70 && $score<=79){ alert('良'); }else if($score>=60 && $score<=69){ alert('及格'); }else if($score>=0 && $score<=59){ alert('不及格'); }else{ alert('没考试'); } } grade(65);
点击 "运行实例" 按钮查看在线实例