mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 19:22:21 +00:00
commit
3961e40a2f
@ -349,7 +349,7 @@ f() // ReferenceError: f is not defined
|
||||
|
||||
## const命令
|
||||
|
||||
const也用来声明变量,但是声明的是常量。一旦声明,常量的值就不能改变。
|
||||
const 声明一个只读的常量。一旦声明,常量的值就不能改变。
|
||||
|
||||
```javascript
|
||||
'use strict';
|
||||
|
Loading…
x
Reference in New Issue
Block a user