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.
localStorage
window.localStorage