成绩练习
<script>
var name = prompt("请输入学生姓名:");
var degree = parseInt(prompt("请输入学生成绩:")); if(degree == 100) { alert("恭喜你:" + name + "," + "满分通过" + "。"); } else if(degree >= 80 && degree < 100) { alert(name + "," + "你很优秀,继续保持!"); } else if(degree >= 60 && degree < 80) { alert(name + "成绩良好!"); } else if(degree >= 50 && degree < 60) { alert(name + "就差一点点,下次一定要至少及格!"); } else { alert(name + "你是笨蛋么?");
}
</script>