2. Scope context #

Created Thursday 25 March 2021

Context - The parent object, or answer to the question’What parent object environment are we in ?’

function f()	// context of f is the same as LOC sibling to f
{
	const a = 10;	// a does not affect the parent - 'this' talks about parent object.
	return this;
}
console.log(this===f()); // -> true for a webpage, this and f() reference the document

FIXME: https://youtu.be/zE9iro4r918 this keyword, apply and bind