Почему this равен window, а this.name выводит другое значение в JavaScript

frontend разработкаJavaScriptthiswindowосновы JavaScript