|
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: |:white_check_mark: | |
| 1004 | +| Cab be Redeclared? | :x: | :x: | :white_check_mark: | |
| 1005 | +| Block Scope | :white_check_mark: |:white_check_mark: | :x: | |
| 1006 | +| Function Scope | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
| 1007 | +| Stored in Global Scope | :x: | :x: | :white_check_mark: | |