Where the browser localStorage
variable defined and how is that possible we can access window.localStorage
object through a global browser variable localStorage
?Seems like this browser behaviour is not described in MDN and in any sources.
Asked
Active
Viewed 25 times
1

Juriy
- 565
- 1
- 5
- 17
-
MDN - [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) – Ryan Wilson May 09 '22 at 20:56
-
1because it is built into the language? Just like how location, history, and other things are defined. – epascarello May 09 '22 at 20:57
-
WHATWG- [Web storage](https://html.spec.whatwg.org/multipage/webstorage.html) – D M May 09 '22 at 20:58