|
50 | 50 | |44|[generate randomUUID](#generate-random-uuid)| |
51 | 51 | |45|[structuredClone](#structuredClone)| |
52 | 52 | |46|[get device orientation](#get-device-orientation)| |
53 | | - |
| 53 | +|47|[CONST vs LET vs VAR](#const-let-var)| |
54 | 54 |
|
55 | 55 | **[⬆ Back to Top](#table-of-contents)** |
56 | 56 | ###How to generate a random number in a given range |
@@ -994,3 +994,14 @@ function getOrientation() { |
994 | 994 | } |
995 | 995 |
|
996 | 996 | ``` |
| 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 | |