I have been doing the following:
var store = window.localStorage; store.setItem()
but now I see code doing this:
localStora
there is no difference between the window.localStorage and localStorage the Window is the global object
Window
the window is the default prefix
but the correct one is window.localStorage because the localStorage attribute is part of window object.
window.localStorage