当前位置:网站首页>JS use the switch statement to output the corresponding English day of the week according to 1-7
JS use the switch statement to output the corresponding English day of the week according to 1-7
2022-06-27 07:35:00 【I am the sun?】
Code :
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>switch Query day of week English </title>
<script type="text/javascript">
var week = +prompt(" Please enter 1-7:");
switch(week){
case 1:
console.log("Monday");
break;
case 2:
console.log("Tuesday");
break;
case 3:
console.log("Wednesday");
break;
case 4:
console.log("Thursday");
break;
case 5:
console.log("Friday");
break;
case 6:
console.log("Saturday");
break;
case 7:
console.log("Sunday");
break;
default:
console.log(" Not within the scope of the query ..");
break;
}
</script>
</head>
<body>
</body>
</html>
Running results :
边栏推荐
- JDBC transaction commit case
- 通过uview让tabbar根据权限显示相应数量的tabbar
- OpenCV怎么下载?OpenCV下载后怎么配置?
- Speech synthesis: tacotron explains [end-to-end speech synthesis model] [compared with traditional speech synthesis, it does not have complex phonetics and acoustic feature modules, but only uses < te
- 【软件工程】山东大学软件工程复习提纲
- Difference between boundvalueops and opsforvalue
- Idea method template
- oracle的similarity方法实现原理
- apifox学习
- Coggle 30 Days of ML 7月竞赛学习
猜你喜欢
Cookie encryption 6
Win10 remote connection to ECS
VNC Viewer方式的远程连接树莓派
Rust Async: smol源码分析-Executor篇
volatile 和 synchronized 到底啥区别?
再见了,敏捷Scrum
Memory barrier store buffer, invalid queue
Vs how to configure opencv? 2022vs configuration opencv details (multiple pictures)
[graduation season] graduation is the new beginning of your life journey. Are you ready
Error in idea connection database
随机推荐
js输出1-100之间所有的质数并求总个数
Vs how to configure opencv? 2022vs configuration opencv details (multiple pictures)
Error in idea connection database
语音信号特征提取流程:输入语音信号-分帧、预加重、加窗、FFT->STFT谱(包括幅度、相位)-对复数取平方值->幅度谱-Mel滤波->梅尔谱-取对数->对数梅尔谱-DCT->FBank->MFCC
进程终止(你真的学会递归了吗?考验你的递归基础)
Cookie加密6
postgreSQL在windows系统遇到权限否认(permission denied)
Jupiter notebook file directory
window右键管理
sql sever列名或所提供值的数目与表定义不匹配
log4j:WARN No such property [zipPermission] in org.apache.log4j.RollingFileAppender.
boundvalueops和opsforvalue区别
uview的安装和功能
Get the query parameter in the address URL specify the parameter method
Yarn create vite reports an error 'd:\program' which is neither an internal or external command nor a runnable program or batch file
Mobile security tools -jad
mysql关于自增和不能为空
再见了,敏捷Scrum
js打印99乘法表
2、项目使用的QT组件