Let say we declare a variable in the global context, like so:
var someVariable = "someValue";
We can always access its value like window['someVariable']
as it is in the global execution context.
But, how can we access it value the same way if it is inside some function and not in the global execution context? For e.g.
function someFunction(someParameter) {
var someVariable = "some value";
// some code
}
I want to do something like someFucntionContext['someParameter']
or someFucntionContext['someVariable']
to access the value of those variables in the execution context of the someFucntion
like I just did for the variable declared in the global context.