当前位置:网站首页>JS string splicing enhancement
JS string splicing enhancement
2022-07-04 05:16:00 【Big bug of xiaofeichan】
Three elements of interactive programming :
【 Example 】
1. Do you like me ? --- This is a User input
2. The girl thought --- This is a Internal processing of the program
3. Finally, I gave you a candy --- This is the output
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
<script>
//1. Pop up an input box (prompt), Let the user enter the age ( User input )
prompt(' Please enter your age ');
//2. Save the value entered by the user with variables , Splice the age you just entered with the string you want to enter ( Internal processing of the program )
var age = 18;
var str = ' You've been ' + age + ' Year old ';
//3. Use alert eject ( Output results )
alert(str);
</script>
</head>
<body>
</body>
</html>边栏推荐
- 2022年T电梯修理操作证考试题库及模拟考试
- appliedzkp zkevm(13)中的Public Inputs
- Notes on the paper "cross view transformers for real time map view semantic segmentation"
- 【MATLAB】MATLAB 仿真 — 窄带高斯白噪声
- 加密和解密
- [matlab] matlab simulation - low pass Gaussian white noise
- Analysis of classical pointer and array written test questions in C language
- Useful plug-ins for vscode
- LabVIEW错误对话框的出现
- ETCD数据库源码分析——初始化总览
猜你喜欢

Write a complete answer applet (including single choice questions, judgment questions and multiple topics) (III) single choice questions, judgment questions, and the first question display

Daily question brushing record (12)

Customize a pager needed in your project

2022危险化学品经营单位安全管理人员上岗证题库及答案

2022 question bank and answers for safety management personnel of hazardous chemical business units

A summary of the 8544 problem that SolidWorks Standard cannot obtain a license

Analysis of classical pointer and array written test questions in C language

抓包整理外篇fiddler———— 会话栏与过滤器

【QT】制作MyComboBox点击事件

June 2022 summary
随机推荐
c语言经典指针和数组笔试题解析
记几个智能手表相关芯片 蓝牙芯片 低功耗
Capturing and sorting out external Fiddler -- Conversation bar and filter
【兴趣阅读】Adversarial Filtering Modeling on Long-term User Behavior Sequences for Click-Through Rate Pre
Programming example of stm32f1 and stm32subeide -74hc595 drives 4-bit 7-segment nixie tube
中職組網絡安全—內存取證
How to build your own knowledge engine? Community open application
Integer type of C language
【MATLAB】MATLAB 仿真数字基带传输系统 — 双极性基带信号(余弦滚降成形脉冲)的眼图
Etcd database source code analysis - initialization overview
Unity is connected to the weather system
Zhongke panyun-d module analysis and scoring standard
[matlab] general function of communication signal modulation bandpass filter
Using jsts in esmodule environment
[matlab] matlab simulates digital bandpass transmission system ask, PSK, FSK system
cmake
【MATLAB】通信信号调制通用函数 — 傅里叶逆变换
[QT] timer
A summary of the 8544 problem that SolidWorks Standard cannot obtain a license
模拟小根堆