当前位置:网站首页>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>边栏推荐
- Analysis of classical pointer and array written test questions in C language
- Get the ID of the record just inserted from laravel
- Unity is connected to the weather system
- Daily question brushing record (12)
- Programming example of stm32f1 and stm32subeide -74hc595 drives 4-bit 7-segment nixie tube
- Notepad++--显示相关的配置
- 如何使用postman实现简单的接口关联【增删改查】
- Error response from daemon: You cannot remove a running container 8d6f0d2850250627cd6c2acb2497002fc3
- 拓扑排序和关键路径的图形化显示
- [paper summary] zero shot semantic segmentation
猜你喜欢

Character types of C language

如何使用postman实现简单的接口关联【增删改查】

海力士EMMC5.0及5.1系列对比详解

令人头痛的延时双删

Graduation design of small programs -- small programs of food and recipes

【QT】制作MyComboBox点击事件

中职组网络安全—内存取证

Download kicad on Alibaba cloud image station

VSCode的有用插件

2022g2 power station boiler stoker special operation certificate examination question bank and answers
随机推荐
Just do it with your hands 7 - * project construction details 2 - hook configuration
Flask
Headache delayed double deletion
[interested reading] advantageous filtering modeling on long term user behavior sequences for click through rate pre
Automated testing selenium foundation -- webdriverapi
A summary of the 8544 problem that SolidWorks Standard cannot obtain a license
2022G2电站锅炉司炉特种作业证考试题库及答案
laravel 中获取刚刚插入的记录的id
【MATLAB】MATLAB 仿真数字基带传输系统 — 双极性基带信号(第 I 类部分响应波形)的眼图
Topological sorting and graphical display of critical path
全国职业院校技能大赛(中职组)网络安全竞赛试题—解析
Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
[matlab] communication signal modulation general function - low pass filter
VSCode的有用插件
Flink1.13 SQL basic syntax (I) DDL, DML
Unity2d -- character moves and turns
Unity is connected to the weather system
[技术发展-25]:广播电视网、互联网、电信网、电网四网融合技术
Secondary vocational group network security - memory Forensics
简单g++和gdb调试