Question: what is the difference between self and this in javascript?
Answer: self (just a property of the global window object) = window. ... So, within the inner function, "this" refers to the object calling the inner function while "self" refers to the object which called the outer function to create the reference to the inner function.