This question already has an answer here:
What is the specialty of self
, a global property that refers to the global object itself?
console.log(self === this, this.self === this,
window.self === this, self.self === this);
This question already has an answer here:
What is the specialty of self
, a global property that refers to the global object itself?
console.log(self === this, this.self === this,
window.self === this, self.self === this);
According to MDN, the notation 'self' alone is useful when working with web workers. I know my answer is not well detailed, but I think this link will put you on the right track.
ps: I was just going to comment, but I still do not have enough reputation.