You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/6-objects-more/1-object-methods/4-object-property-this/solution.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,4 +16,4 @@ alert( user.export.firstName );
16
16
17
17
Так как код находится вообще вне любых функций, то `this` в нём равен `window` (в браузере так всегда для кода вне функций, вне зависимости от `use strict`).
18
18
19
-
Получается, что в строке `(*)` мы имеем `export: window`, так что далее `alert(user.export.firstName)` выводит свойство `window.firstName`, то которое не определено.
19
+
Получается, что в строке `(*)` мы имеем `export: window`, так что далее `alert(user.export.firstName)` выводит свойство `window.firstName`, которое не определено.
0 commit comments