Context Object Manipulation
One of the key concepts of JavaScript is the keyword this, which signifies the JavaScript context object. If you write an inner function, you can access any local variables you define in the outer function exactly as if you had defined them locally. You can also access any arguments you pass to a function as if…