我的代码有问题吗?为什么点了按钮没反应
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>知识点</title>
<script type="text/javascript">
function rec () {
var score;
score=prompt("请输入您的期末考试成绩:");
if (score>=90)
{
document.write("你很棒");
}
else if (score>=80)
{
document.write("嗯,还行吧");
}
else if (score>=70)
{
document.write("要努力了哦");
}
else
{
document.write("小子,爱情不能当饭吃");
};
};
</script>
</head>
<body>
<input name="button" type="button" onclick="hanshu()" value="函数与函数调用" />
</body>
</html>