当前位置:网站首页>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
边栏推荐
- Network Security Learning - Information Collection
- How to solve the problem of adding RTSP device to easycvr cluster version and prompting server ID error?
- 关于01背包个人的一些理解
- 各路行业大佬称赞的跨架构开发“神器”,你get同款了吗?
- Oracle -- 视图与序列
- 图灵诞辰110周年,智能机器预言成真了吗?
- This "advanced" technology design 15 years ago makes CPU shine in AI reasoning
- NTU notes 6422quiz review (1-3 sections)
- Basic idea of counting and sorting
- Meow, come, come: do you really know if, if else
猜你喜欢

What if the win11 screenshot key cannot be used? Solution to the failure of win11 screenshot key

The request request is encapsulated in uni app, which is easy to understand

How to solve the problem of adding RTSP device to easycvr cluster version and prompting server ID error?

九章云极DataCanvas公司获评36氪「最受投资人关注的硬核科技企业」

Easycvr cannot be played using webrtc. How to solve it?

namespace基础介绍

Basic idea of counting and sorting

DFS and BFS concepts and practices +acwing 842 arranged numbers (DFS) +acwing 844 Maze walking (BFS)

Chapter 9 Yunji datacanvas company has been ranked top 3 in China's machine learning platform market

各路行业大佬称赞的跨架构开发“神器”,你get同款了吗?
随机推荐
What is Web3
Unit test asp Net MVC 4 Application - unit testing asp Net MVC 4 apps thoroughly
A series of shortcut keys for jetbrain pychar
深耕开发者生态,加速AI产业创新发展 英特尔携众多合作伙伴共聚
C # use Siemens S7 protocol to read and write PLC DB block
Can I specify a path in an attribute to map a property in my class to a child property in my JSON?
未婚夫捐5亿美元给女PI,让她不用申请项目,招150位科学家,安心做科研!
AI landing new question type RPA + AI =?
Vscode 如何使用内置浏览器?
这项15年前的「超前」技术设计,让CPU在AI推理中大放光彩
JS form get form & get form elements
九章云极DataCanvas公司摘获「第五届数字金融创新大赛」最高荣誉!
Oracle -- 视图与序列
组织实战攻防演练的5个阶段
How does vscade use the built-in browser?
Both primary and secondary equipment numbers are 0
Basic idea of counting and sorting
Digital chemical plants realize the coexistence of advantages of high quality, low cost and fast efficiency
ESG全球领导者峰会|英特尔王锐:以科技之力应对全球气候挑战
GPT-3当一作自己研究自己,已投稿,在线蹲一个同行评议