"this", "bind" , "apply" and "call"
/** * lets understand the most notorious and complex topic which always * ditch even a pro javascript programmer. * "this", "bind" , "apply" and "call". */ /************************** EXAMPLE 1 **************************************/ /************** "this" ******************* * just to distinguish English language word this from js keyword this, I will notate the * JS keyword this within "this", however you gotta use the keyword in programmes as plain this. * * "this" is a JS keyword which notates the current object which invokes the function. * Please pay attention "object which invokes the function". * * "object which invokes the function" is the phrase if you remember, will never get confused. * * Also remember, "this" is not associated to an object until it is get called by the object. * means , JS decides during runtime the value of "th...