当前位置:网站首页>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>边栏推荐
- When using flash to store parameters, the code area of flash is erased, which leads to the interrupt of entering hardware error
- 海力士EMMC5.0及5.1系列对比详解
- Secondary vocational group network security - memory Forensics
- Simulated small root pile
- Programming example of stm32f1 and stm32subeide -74hc595 drives 4-bit 7-segment nixie tube
- Nodejs learning document
- C语言简易学生管理系统(含源码)
- 中科磐云—2022广西逆向解析思路
- [matlab] general function of communication signal modulation Fourier transform
- COMP1721 Creating Classes
猜你喜欢

空洞卷积、可变形卷积、可变形ROI Pooling

Automated testing selenium foundation -- webdriverapi

Detailed comparison of Hynix emmc5.0 and 5.1 series

Sécurité du réseau dans les écoles professionnelles secondaires - preuve de mémoire

Useful plug-ins for vscode

Public inputs in appliedzkp zkevm (13)

ETCD数据库源码分析——初始化总览

2022年R2移动式压力容器充装复训题库及答案

How to build your own knowledge engine? Community open application

【兴趣阅读】Adversarial Filtering Modeling on Long-term User Behavior Sequences for Click-Through Rate Pre
随机推荐
练习-冒泡排序
远程桌面客户端 RDP
ping端口神器psping
[matlab] matlab simulation modulation system FM system
【MATLAB】MATLAB 仿真数字基带传输系统 — 双极性基带信号(第 I 类部分响应波形)的眼图
【MATLAB】通信信号调制通用函数 — 傅里叶变换
[matlab] general function of communication signal modulation - generation of narrow-band Gaussian white noise
Electronic components mall and data manual download website summary
Flutter calls Gaode map app to realize location search, route planning and reverse geocoding
How to build your own knowledge engine? Community open application
Secondary vocational group network security - memory Forensics
Just do it with your hands 7 - * project construction details 2 - hook configuration
Graduation design of small programs -- small programs of food and recipes
【MATLAB】通信信号调制通用函数 — 带通滤波器
[interested reading] advantageous filtering modeling on long term user behavior sequences for click through rate pre
Just do it with your hands 7 - * project construction details 2 - hook configuration
appliedzkp zkevm(11)中的EVM Proof
TCP状态转换图
[技术发展-25]:广播电视网、互联网、电信网、电网四网融合技术
2022年R2移动式压力容器充装复训题库及答案