1.
What is function scope in JavaScript?
2.
Which keyword is used to declare a function-scoped variable?
3.
What happens to a function-scoped variable outside of its function?
4.
Which of the following is true about function scope in JavaScript?
5.
What is the output of console.log(innerVar); outside of exampleFunction if var innerVar = 'Hello'; is defined inside exampleFunction?
6.
How do you declare a function-scoped variable using ES6?
7.
What is lexical scoping in JavaScript?
8.
Which of the following demonstrates lexical scoping?
9.
What is the purpose of function scope in JavaScript?
10.
Can function-scoped variables be accessed from outside their functions?