'How to save, load and edit lists in JavaScript
So I have heard about saving and I wanted to make so that on my website users can make list of clickable links and save them and delete them. So is it possible? I am good at HTML and CSS but I am just learning JavaScript.
Solution 1:[1]
Yeah, it's possible. You need to save the data somewhere : it could be on the browser of the user by using localStorage or on the server by creating an API that can save the data, for example, in a database.
or use Simple NodeJs Express example app url
Solution 2:[2]
You can store the list of links in an array and then JSON.stringify it so you can store it in localStorage (localStorage only accepts strings). Just have an input for links and a button to add them then add some event listeners to read then change localStorage.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Shantanu Sharma |
| Solution 2 | Yugoslav Empire |
