0

As I understand window == window.self == self What can be the reason / advantage to use self instead of window ?

Update. I think if i will understand logic of creators of above fields i will became more smart. Question is not What is the difference? Question is What was the purpose?

Yuriy N.
  • 4,936
  • 2
  • 38
  • 31

1 Answers1

3

They are equal, there is no advantage or disadvantage to using one over another unless you have style guidelines that specify which to prefer.

Adam H
  • 1,523
  • 11
  • 21