In Javascript is there a variable representing the context of a function, in which the arguments are named attributes (not array indexes)?
Apologies for not including research results, I'm trying to find the words to search for.
function f (a,b,c) {
console.log(a); // this returns `4`, but is there an object `a` is an attribute of?
console.log(arguments[0]); // this returns `4` but I'm looking for ?.a not ?[0]
console.log(this.a) // returns `undefined` and is not the idea I seek
console.log(window.a) // returns `undefined` and is not the idea I seek
console.log(context.a) // is there a variable for the **context** of this function?
}
f(4,9, 13)