---
title: "Discussion on \"localStorage property in JavaScript\" | Hashnode"
description: "Discussion on \"localStorage property in JavaScript\". localStorage property in JavaScript"
url: "https://hashnode.com/posts/localstorage-property-in-javascript/657da8a1ebc5df1f39652202"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [localStorage property in JavaScript](https://yousraa.hashnode.dev/localstorage-property-in-javascript?utm_source=hashnode&utm_medium=feed)

localStorage property in JavaScript

Dec 16, 2023 · 3 min read · yousraa.hashnode.dev  
Read the article

-   [#localstorage](https://hashnode.com/tag/localstorage)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#storage](https://hashnode.com/tag/storage)

## Written by

[Yousra Kamal](https://hashnode.com/@Yousra90)

@Yousra90 · Sydney, Australia

  
[View profile](https://hashnode.com/@Yousra90)

A pharmacist 💊 Coding is my medicine 👩‍💻

Hi I'm Yousra, a clinical pharmacist and a software developer in the making. I'm self-taught, exploring development world with heavy focus on frontend applications.

## Responses 2

Markdown supported · ⌘↵ to post

[yi nico](https://hashnode.com/@nico220)

[Dec 21, 2023](https://hashnode.com/posts/localstorage-property-in-javascript/657da8a1ebc5df1f39652202/comment/6583e7cbdce0028533f7326c)

Super helpful and well written!Hope bloggers share more such blogs，This address also allows people to learn knowledge [gtone.top](https://www.gtone.top/)

[await](https://hashnode.com/@await)

[Dec 18, 2023](https://hashnode.com/posts/localstorage-property-in-javascript/657da8a1ebc5df1f39652202/comment/658007c5c6ef1959c3473b65)

Every data stored in "localStorage" will be converted into "String", and we will get a value with type of "String" when call `localStorage.getItem("key")`. Using `JSON.parse` can solve this matter, but it is noted that if the type of primitive value of the variable is "String", we will get a error.
