If name
is a global variable, then name
and window.name
are equivalent.
Global variables and functions are members of the global object. In browsers, the global object contains a window member whose value is the global object.
More Related Contents:
- Total sum is NaN – Javascript
- Why is setState in reactjs Async instead of Sync?
- Updating a Nested Array with MongoDB
- Issue in returning data retrieved from DB queries called in the loop
- setImmediate vs. nextTick
- Passing environment-dependent variables in webpack
- Use dynamic (variable) string as regex pattern in JavaScript
- Setting cross-domain cookies in Safari
- post increment vs pre increment – Javascript Optimization
- How can I highlight the text of the DOM Range object?
- Generate unique number within range (0 – X), keeping a history to prevent duplicates
- Why does a simple .*? non-greedy regex greedily include additional characters before a match?
- Backbone: Why assign `$(‘#footer’)` to `el`? [duplicate]
- How to play a notification sound on websites?
- Retrieve data from a ReadableStream object?
- Node.js Async/Await module export
- Appending form input value to action url as path
- How can I return a random value from an array?
- Manually triggering the iPhone/iPad/iPod keyboard from JavaScript
- How to cancel a subscription in Angular2
- Event fired when clearing text input on IE10 with clear icon
- What are asynchronous functions in JavaScript? What is “async” and “await” in JavaScript?
- jQuery/JS, iOS 4 and $(document).height() problems
- Selenium WebDriver wait till element is displayed
- Create XML in JavaScript
- Get Correct keyCode for keypad(numpad) keys
- call javascript function on hyperlink click
- Observe mutations on a target node that doesn’t exist yet
- default array values
- Does using a document fragment really improve performance?