当前位置:网站首页>JS variable plus
JS variable plus
2022-07-07 04:50:00 【Big bug of xiaofeichan】
1. Update variables
2. Declare multiple variables
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
<script>
//1. Update variables
var myname = ' full name 1';
console.log(myname);
myname = ' full name 2';
console.log(myname);
//2. Declare multiple variables
var name = ' Sheep and sheep ',
age = 18,
temperamental = ' Silly autumn ';
console.log(name);
console.log(age);
console.log(temperamental);
</script>
</head>
<body>
</body>
</html>
3. Only declare (var) No assignment
( Undefined )
4. Do not declare No assignment Use it directly
( Report errors )
js: If an error is reported in the previous sentence, the next sentence will not be executed
5. Do not declare Direct assignment uses ------ correct
边栏推荐
- What is JVM? What are the purposes of JVM tuning?
- 食堂用户菜品关系系统(C语言课设)
- JDBC link Oracle reference code
- Master the secrets of software security testing methods, and pinch the security test report with your hands
- leetcode 53. Maximum subarray maximum subarray sum (medium)
- Read of shell internal value command
- Gpt-3 is a peer review online when it has been submitted for its own research
- Structure actual training camp | after class homework | module 6
- 论文上岸攻略 | 如何快速入门学术论文写作
- acwing 843. n-皇后问题
猜你喜欢
Digital chemical plant management system based on Virtual Simulation Technology
A row of code r shows the table of Cox regression model
Basic idea of counting and sorting
DFS和BFS概念及实践+acwing 842 排列数字(dfs) +acwing 844. 走迷宫(bfs)
What if the win11 screenshot key cannot be used? Solution to the failure of win11 screenshot key
A detailed explanation of head pose estimation [collect good articles]
Intel and Xinbu technology jointly build a machine vision development kit to jointly promote the transformation of industrial intelligence
JS also exports Excel
C # use Siemens S7 protocol to read and write PLC DB block
Have you got the same "artifact" of cross architecture development praised by various industry leaders?
随机推荐
Canteen user dish relationship system (C language course design)
The easycvr platform is connected to the RTMP protocol, and the interface call prompts how to solve the error of obtaining video recording?
用CPU方案打破内存墙?学PayPal堆傲腾扩容量,漏查欺诈交易量可降至1/30
Case reward: Intel brings many partners to promote the innovation and development of multi domain AI industry
Win11 control panel shortcut key win11 multiple methods to open the control panel
Poor math students who once dropped out of school won the fields award this year
过气光刻机也不能卖给中国!美国无理施压荷兰ASML,国产芯片再遭打压
Vscode 如何使用内置浏览器?
Optimization of channel status offline of other server devices caused by easycvr cluster restart
计数排序基础思路
Digital chemical plant management system based on Virtual Simulation Technology
Master the secrets of software security testing methods, and pinch the security test report with your hands
What is JVM? What are the purposes of JVM tuning?
You can't sell the used lithography machine to China! The United States unreasonably pressured the Dutch ASML, and domestic chips were suppressed again
AI landing new question type RPA + AI =?
程序员上班摸鱼,这么玩才高端!
JDBC link Oracle reference code
Two methods of chromosome coordinate sequencing
Break the memory wall with CPU scheme? Learn from PayPal to expand the capacity of aoteng, and the volume of missed fraud transactions can be reduced to 1/30
ESG全球领导者峰会|英特尔王锐:以科技之力应对全球气候挑战