147work
<script>
/*
案例分析
输入12点, 跳出中午好, 输入18点,跳出傍晚好, 输入23点,输出深夜好
1 用户输入 prompt ,输出
2 程序处理
3 输出
*/
var time = prompt('请您输入时间');
if(time >= '23点') {
alert('深夜好');
} else if (time >='18点') {
alert('傍晚好');
} else if(time >='12点') {
alert('中午好');
}
</script>