jadjoubran / codetogo.io

🚀 JavaScript code to go - Find updated snippets for common JavaScript use cases
https://codetogo.io
MIT License
233 stars 30 forks source link

Use Case Suggestion: how to store data to local storage in javascript #257

Closed Snapp-Dragon closed 8 months ago

Snapp-Dragon commented 3 years ago

const money = {

currency: "United States Dollar",

value: 20

}

localStorage.setItem("money",JSON.stringify(money));

jadjoubran commented 3 years ago

Very good use case, thanks! I am planning on re-writing the website soon, so I will include this with the re-write

Snapp-Dragon commented 3 years ago

Thank you. This is the first project I have ever contributed to. Looking to contribute a lot more.