How can we add and remove data from local storage?



How can we add and remove data from local storage?..

Answer / Manu Kumar Sharma

To add data to local storage, you can use the `localStorage.setItem()` method, and to remove data, you can use the `localStorage.removeItem()` or `localStorage.clear()` method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More HTML DHTML Interview Questions

What do you mean by html?

1 Answers  


What is an example of labelling?

1 Answers  


What is hyperlink? Why it is used?

1 Answers  


What is the main function of dom?

1 Answers  


Why meta tags are used in html?

1 Answers  


What is html in simple terms?

1 Answers  


What is html5 and its uses?

1 Answers  


What is the difference between br and br />?

1 Answers  


What does the alt attribute do?

1 Answers  


Is there a way to get indexed better by the search engines?

1 Answers  


What is web sql database in html 5? Explain

1 Answers  


What are xhtml files?

1 Answers  


Categories