⏱ 0:01est. 2 min
Chapter 17- Scope, ES6 and let
Notes
#BIGWORD Scope - It's where a variable is available in your code. It could be new variable or a new copy
ES6 - Providing new way of declaring variable "let"
- let allows block scoping
Example 1
if(a>b){
let c = true;
}
let & const in JS 🔥Temporal Dead Zone
https://www.youtube.com/watch?v=BNC6slYCj50&t=1143s
BLOCK SCOPE & Shadowing in JS
https://www.youtube.com/watch?v=lW_erSjyMeM