Skip to content

Commit a136fee

Browse files
authored
Update README.md
1 parent b45c92e commit a136fee

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
2. [What are the different datatypes in JavaScript?](#q2-what-are-the-different-datatypes-in-javascript-most-asked)
66
3. [What is Hoisting in JavaScript?](#q3-what-is-hoisting-in-javascript-most-asked)
77
4. [What is Temporal Dead Zone?](#q4-what-is-temporal-dead-zone)
8-
5. [What are the differences between `let`, `var`, and `const`?](#q5-differences-between-let-var-and-const)
8+
5. [What are the differences between `let`, `var`, and `const`?](#q5-what-are-the-differences-between-let-var-and-const)
9+
910

1011

1112
### Q1. Is JavaScript a dynamically typed language or a statically typed language?
@@ -68,15 +69,16 @@ function somemethod() {
6869
[Back to Top](#javascript-basics)
6970

7071
### Q5. What are the differences let, var and const ? (Most asked)
71-
** Scope: **
72+
73+
**Scope:**
7274
- Variables declared with var are function scoped.( available through out the function where its declared ) or global scoped( if defined outside the function ).
7375
- Variables declared with let and const are block scoped.
74-
** Reassignment: **
76+
**Reassignment:**
7577
- var and let can be reassigned.
7678
- const cannot be reassigned.
77-
** Hoisting: **
79+
**Hoisting:**
7880
- var gets hoisted and initialized with undefined.
7981
- let and const - gets hoisted to the top of the scope but does not get assigned any value.(temporal dead zone)
80-
82+
8183
##
8284
[Back to Top](#javascript-basics)

0 commit comments

Comments
 (0)