---
title: "Comment by Victor Vedenin on \"The Web Storage API\" | Hashnode"
description: "Hey! Thanks for the article! There are little typos in examples - you trying to access to global variables with uppercased window object. It won&#39;t work. You"
url: "https://hashnode.com/posts/the-web-storage-api/62a64b35165482d2b3eef0c4/comment/62a98ac80baf4306d9495709"
---

[Discussion](https://hashnode.com/posts/the-web-storage-api/62a64b35165482d2b3eef0c4)

Comment [The Web Storage API](https://hashnode.com/posts/the-web-storage-api/62a64b35165482d2b3eef0c4)

[Victor Vedenin](https://hashnode.com/@Ninedev)

[Jun 15, 2022](https://hashnode.com/posts/the-web-storage-api/62a64b35165482d2b3eef0c4/comment/62a98ac80baf4306d9495709)

Hey! Thanks for the article! There are little typos in examples - you trying to access to global variables with uppercased window object. It won't work. You should use `window.localStorage` or just `localStorage`

[Akinleye Oyinbayode Peters](https://hashnode.com/@Oyinbayode)

[Jun 15, 2022](https://hashnode.com/posts/the-web-storage-api/62a64b35165482d2b3eef0c4/comment/62a98ac80baf4306d9495709#reply-62a9d3541a89c91850b18155)

Thank you Victor!

That was unintended.

Yes, localStorage would work just fine in practice. I'd edit the post
