当前位置:网站首页>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>
边栏推荐
- LM small programmable controller software (based on CoDeSys) note 22: error 4268/4052
- [matlab] general function of communication signal modulation inverse Fourier transform
- NTFS security permissions
- [matlab] matlab simulation - simulate the AM modulation process of the modulation system
- 令人头痛的延时双删
- 记几个智能手表相关芯片 蓝牙芯片 低功耗
- Useful plug-ins for vscode
- 力扣 第 300 场周赛
- [matlab] matlab simulation - low pass Gaussian white noise
- 《Cross-view Transformers for real-time Map-view Semantic Segmentation》论文笔记
猜你喜欢
[QT] timer
令人头痛的延时双删
中職組網絡安全—內存取證
NTFS 安全权限
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
Automated testing selenium foundation -- webdriverapi
TCP state transition diagram
Ping port artifact psping
A summary of the 8544 problem that SolidWorks Standard cannot obtain a license
ping端口神器psping
随机推荐
EVM proof in appliedzkp zkevm (11)
Topological sorting and graphical display of critical path
Zhongke Panyun - data analysis and forensics packet flag
【兴趣阅读】Adversarial Filtering Modeling on Long-term User Behavior Sequences for Click-Through Rate Pre
[matlab] matlab simulation of modulation system - power spectrum and coherent demodulation of AM modulated signal
Zhongke panyun-2022 Guangdong Trojan horse information acquisition and analysis
力扣 第 300 场周赛
[untitled]
Li Kou's 300th weekly match
LM小型可编程控制器软件(基于CoDeSys)笔记二十一:错误3703
Integer type of C language
PostgreSQL has officially surpassed mysql. Is this guy too strong!
[matlab] matlab simulation modulation system - DSB system
KMP匹配字符串
[matlab] general function of communication signal modulation - generation of narrow-band Gaussian white noise
如何构建属于自己的知识引擎?社群开放申请
令人头痛的延时双删
laravel 中获取刚刚插入的记录的id
Get the ID of the record just inserted from laravel
appliedzkp的zkevm(12)State Proof