当前位置:网站首页>JS ATM机输出
JS ATM机输出
2022-07-27 21:16:00 【Slxa 安.】
目录
1.js代码
<script>
var sum = prompt('你需要办理什么业务:\n 1.存钱 \n 2.取钱 \n 3.查询余额 \n 4.退出');
var blance = 10000000000000;
while (sum) {
if (sum == 1) {
money = prompt('你需要存多少钱?');
blance = blance + +money;
alert('你的存款余额为' + blance + '');
} else if (sum == 2) {
money = prompt('你需要取多少钱?');
blance = blance - +money;
alert('你的存款余额为' + blance + '');
} else if (sum == 3) {
alert('你的存款余额为' + blance + '');
} else if (sum == 4) {
break;
} else {
alert('请输入有效数字1,2,3,4')
}
var sum = prompt('你需要办理什么业务:\n 1.存钱 \n 2.取钱 \n 3.查询余额 \n 4.退出');
}
</script>2.运行结果

边栏推荐
- XSS payload learning browser decoding
- The share price soared 180.46%! Shanghai silicon industry, the leader of domestic large silicon wafers, is listed: the cumulative net profit in recent four years is less than 60million
- [极客大挑战 2019]RCE ME
- 尚硅谷尚品项目汇笔记(一)
- 测试类中的断言机制
- How to bold font in Latex & how to make circle serial number
- This is the most concise guide to tcpdump in history. It's enough to read this one
- J9 Digital Science Popularization: how does the double consensus of Sui network work?
- [geek challenge 2019] rce me
- [NPUCTF2020]EzRSA
猜你喜欢

BUUCTF-RSA roll

【开发教程9】疯壳·开源蓝牙心率防水运动手环-心率监测

Redefine analysis - release of eventbridge real-time event analysis platform

The 4-hour order exceeds 20000+, claiming to be "the most luxurious in a million". Is the domestic brand floating?

29.学习Highcharts 使用百分比的堆叠柱形图

Latex常用总结(2):输入矩阵(输入矩阵、对角阵、方程组等)

【zer0pts CTF 2022】 Anti-Fermat

What is the prospect of low code development? Are you really optimistic about low code development?

Starfish OS X metabell strategic cooperation, metauniverse business ecosystem further

liux常用命令(查看及其开放防火墙端口号+查看及其杀死进程)
随机推荐
Explain the idempotence of distributed system in detail
[gwctf 2019] boring lottery
Comparison between virtual memory and cache
urllib.error. URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: un
How to bold font in Latex & how to make circle serial number
Redis 哈希Hash底层数据结构
硬布线控制器的特点:
Why do I need to wait for 2msl?
[C language] address book (dynamic version)
BUUCTF-[BJDCTF2020]RSA1
Arm32 for remote debugging
【飞控开发基础教程6】疯壳·开源编队无人机-SPI(六轴传感器数据获取)
CaEGCN: Cross-Attention Fusion based Enhanced Graph Convolutional Network for Clustering 2021
Common errors reported by ant sword
xss.haozi.me练习通关
Sort sort
NDK 系列(6):说一下注册 JNI 函数的方式和时机
2022/7/24-7/25
【开发教程9】疯壳·开源蓝牙心率防水运动手环-心率监测
JUC toolkit learning