javascript's - this keyword, getters & setters, Dom box dimension properties
JavaScript Today’s topic - this keyword, Getters & Setters, Dom box dimension properties. This keyword this keyword’s simple description would be it refers to the object in which it is used. this can give different values based on where it has been used. Global context - In global context i.e used outside of any function this will refer to the global object. this in a global context. Function context - When this keyword is used in the function in non strict mode this will refer to the global object . this in a function context. Function context (“strict mode”) - When this keyword is used in the function context in strict mode this will be undefined. this in a function context using strict mode. Method context - While used in method context this refers to the owner of the method in which it is used. this in a method context. Event context - When used in an event context this will refer to the element by which the event is called. this...