1. Identify and define the two types of scope within JavaScript. Provide a short example that…

1. Identify and define the two types of scope within
JavaScript. Provide a short example that demonstrates these two types of scope.

2. Define and use an immediately-invoked function expression
that uses a loop to output to the console all the numbers between 1 and 20.

3. Why are prototypes more efficient than other techniques
for creating objects with methods in JavaScript?