当前位置:网站首页>JS ATM output
JS ATM output
2022-07-28 00:11:00 【Slxa Ann】
Catalog
1.js Code
<script>
var sum = prompt(' What business do you need :\n 1. Deposit money \n 2. Withdraw money \n 3. Check the balance \n 4. sign out ');
var blance = 10000000000000;
while (sum) {
if (sum == 1) {
money = prompt(' How much do you need to save ?');
blance = blance + +money;
alert(' Your deposit balance is ' + blance + '');
} else if (sum == 2) {
money = prompt(' How much do you need to withdraw ?');
blance = blance - +money;
alert(' Your deposit balance is ' + blance + '');
} else if (sum == 3) {
alert(' Your deposit balance is ' + blance + '');
} else if (sum == 4) {
break;
} else {
alert(' Please enter a valid number 1,2,3,4')
}
var sum = prompt(' What business do you need :\n 1. Deposit money \n 2. Withdraw money \n 3. Check the balance \n 4. sign out ');
}
</script>2. Running results

边栏推荐
猜你喜欢

The 4-hour order exceeds 20000+, claiming to be "the most luxurious in a million". Is the domestic brand floating?
![[RoarCTF2019]RSA](/img/0e/8c8371ccf40094e5b03e502d6ae851.png)
[RoarCTF2019]RSA

Use of date

Bank marketing predicts the success rate of a customer's purchase of financial products

New media content output method - short video

BUUCTF-RSA

基于mediapipe的姿态识别和简单行为识别

Xss.haozi.me practice customs clearance

Realize today's news website based on native JS
![[roarctf2019] babyrsa Wilson theorem](/img/c1/52e79b6e40390374d48783725311ba.gif)
[roarctf2019] babyrsa Wilson theorem
随机推荐
2022最新抖音直播监控全套监控(五)商品详情监控
Construction and application of super large scale knowledge map of ants
BUUCTF-[BJDCTF2020]RSA1
R语言R原生plot函数和lines函数的主要参数说明、解析(type、pch、cex、lty、lwd、col、xlab、ylab)
[NPUCTF2020]EzRSA
QT with OpenGL (shadow mapping)
[December Haikou] the 6th International Conference on ships, marine and Maritime Engineering in 2022 (naome 2022)
NDK series (6): let's talk about the way and time to register JNI functions
Binary conversion method
解密 OOM 崩溃下降 90% 的秘密~
Senior how to determine the standard of software test completion
TOGAF10标准读书会首场活动圆满举办,精彩时刻回顾!
[geek challenge 2019] rce me
[ACTF新生赛2020]crypto-aes
Decrypt the secret of 90% reduction in oom crash~
2022 International Conference on civil, building and Environmental Engineering (iccaee 2022)
Use of date
Smartrefresh nested multiple recycleview sliding conflicts and incomplete layout display
BUUCTF-RSA4
[unity] mapping 2D coordinates to ID