This commit is contained in:
Ilya Kantor 2019-09-25 06:21:48 +03:00
parent 9ed0241267
commit 43522e125b

View file

@ -237,7 +237,7 @@ To declare a constant (unchanging) variable, use `const` instead of `let`:
const myBirthday = '18.04.1982';
```
Variables declared using `const` are called "constants". They cannot be changed. An attempt to do so would cause an error:
Variables declared using `const` are called "constants". They cannot be reassigned. An attempt to do so would cause an error:
```js run
const myBirthday = '18.04.1982';