add missed one

This commit is contained in:
Lavrentiy Rubtsov 2022-05-17 20:26:03 +06:00 committed by GitHub
parent 212c5275d4
commit 98899d8546
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -292,6 +292,7 @@ When should we use capitals for a constant and when should we name it normally?
Being a "constant" just means that a variable's value never changes. But there are constants that are known prior to execution (like a hexadecimal value for red) and there are constants that are *calculated* in run-time, during the execution, but do not change after their initial assignment. Being a "constant" just means that a variable's value never changes. But there are constants that are known prior to execution (like a hexadecimal value for red) and there are constants that are *calculated* in run-time, during the execution, but do not change after their initial assignment.
For instance: For instance:
```js ```js
const pageLoadTime = /* time taken by a webpage to load */; const pageLoadTime = /* time taken by a webpage to load */;
``` ```