当前位置:网站首页>Javescript variable declaration -- VaR, let, const
Javescript variable declaration -- VaR, let, const
2022-07-03 16:58:00 【gdtown】
| keyword | var | let | const |
|---|---|---|---|
| attribute 1 | Declare as a global variable in the global | Declare as a global variable in the global , But it can't be used. window Object access | Same as let |
| attribute 2 | Declare a local variable inside a function | Block variable | Same as let |
| attribute 3 | Variable promotion | There is a temporary dead zone | Same as let |
| attribute 4 | Can be redundant declaration | Repeated declaration of the same variable will report an error | Same as let |
| attribute 5 | Can be changed at will | Can be changed at will | It cannot be changed at will , But you can change the reference type variable |
边栏推荐
- Depth first search of graph
- Thread pool: the most common and error prone component of business code
- Atom QT 16_ audiorecorder
- 斑馬識別成狗,AI犯錯的原因被斯坦福找到了
- [try to hack] active detection and concealment technology
- [combinatorial mathematics] counting model, common combinatorial numbers and combinatorial identities**
- 网络安全web渗透技术
- Bcvp developer community 2022 exclusive peripheral first bullet
- 27. Input 3 integers and output them in descending order. Pointer method is required.
- Take you to API development by hand
猜你喜欢

CC2530 common registers for watchdog

What is the maximum number of concurrent TCP connections for a server? 65535?

CC2530 common registers for crystal oscillator settings

C语言按行修改文件

MySQL single table field duplicate data takes the latest SQL statement

NLP four paradigms: paradigm 1: fully supervised learning in the era of non neural networks (Feature Engineering); Paradigm 2: fully supervised learning based on neural network (Architecture Engineeri

CC2530 common registers for serial communication

Data driving of appium framework for mobile terminal automated testing

ucore概述

Build your own website (23)
随机推荐
CC2530 common registers for port interrupts
Data driving of appium framework for mobile terminal automated testing
The largest matrix (H) in a brush 143 monotone stack 84 histogram
匯編實例解析--實模式下屏幕顯示
CC2530 common registers for crystal oscillator settings
大消费企业怎样做数字化转型?
PHP production website active push (website)
word 退格键删除不了选中文本,只能按delete
CC2530 common registers for timer 1
C language string inversion
图之深度优先搜索
What material is 12cr1movr? Chemical property analysis of pressure vessel steel plate 12cr1movr
Central South University | through exploration and understanding: find interpretable features with deep reinforcement learning
Arduino esp32: overall framework of lvgl project (I)
【剑指 Offer 】64. 求1+2+…+n
The way of wisdom (unity of knowledge and action)
静态程序分析(一)—— 大纲思维导图与内容介绍
CC2530 common registers for watchdog
[mathematical logic] equivalent calculus and reasoning calculus of propositional logic (propositional logic | equivalent calculus | principal conjunctive (disjunctive) paradigm | reasoning calculus)**
Simulink oscilloscope data is imported into Matlab and drawn