Skip to content

Commit

Permalink
add global context b00tc4mp#51
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbarzi committed May 31, 2024
1 parent a9c2a14 commit 182f8e8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions stuff/js/global-context-n-this.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
window
// Window { window: Window, self: Window, document: document, name: '', location: Location, … }
this
// Window { window: Window, self: Window, document: document, name: '', location: Location, … }
window === this
// true
window.console
// console { debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, … }
this.console
// console { debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, … }
console
// console { debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, … }
window.console === this.console
// true
this.console === console
// true

0 comments on commit 182f8e8

Please sign in to comment.