Skip to content

Commit 8f85e71

Browse files
authored
CONST vs LET vs VAR
1 parent b2d0d5e commit 8f85e71

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
|44 | [generate randomUUID](#generate-random-uuid)|
5151
|45 | [structuredClone](#structuredClone)|
5252
|46 | [get device orientation](#get-device-orientation)|
53-
53+
|47 | [CONST vs LET vs VAR](#const-let-var)|
5454

5555
**[⬆ Back to Top](#table-of-contents)**
5656
### How to generate a random number in a given range
@@ -994,3 +994,14 @@ function getOrientation() {
994994
}
995995
996996
```
997+
998+
**[⬆ Back to Top](#table-of-contents)**
999+
### CONST vs LET vs VAR
1000+
1001+
| | const | Let | Var |
1002+
|------------------------|-------|-----|-----|
1003+
| Can be Reaasigned? | X | :white_check_mark: | V |
1004+
| Cab be Redeclared? | X | X | V |
1005+
| Block Scope | V | V | X |
1006+
| Function Scope | V | V | V |
1007+
| Stored in Global Scope | X | X | V |

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy