11.
What is the output of console.log(outerVar); outside of outerFunction if var outerVar = 'Outer'; is defined inside outerFunction?
12.
What is hoisting in JavaScript?
13.
What is block scope in JavaScript?
14.
How do you declare a block-scoped variable in ES6?
15.
What happens if you declare a variable with the same name in both function and block scopes?
16.
What is the output of console.log(blockVar); outside of a block if let blockVar = 'Block'; is defined inside a block?
17.
How can you access a variable declared in an inner block from an outer block?
18.
What is the benefit of block scope in JavaScript?
19.
What is the difference between let and var in terms of function scope?
20.
How does lexical scoping affect nested functions in JavaScript?