How to Use Local Storage in JavaScript

preview_player
Показать описание
By using Local Storage in JavaScript, you are able to store simple data persistently for your web application directly through the web browser itself - no PHP needed!

Data is stored using key-value pairs, string-string. This makes it more than capable of storing basic data which is the intention and recommended use of Local Storage.

I wouldn't recommend using Local Storage for large scale applications because even though the data is persistent, it isn't guaranteed to stay there and is only specific on that particular machine.

In this video I show you the basics of using Local Storage as well as a mini application that prints out the data stored inside the Local Storage.

For your reference, check this out:

0:00 Overview
1:30 Looking at the JavaScript
3:05 Adding data to Local Storage
4:20 Removing data from Local Storage
4:52 Getting data from Local Storage
6:28 Exploring a few extra methods
7:16 Creating the input form
14:58 Wrapping up

Follow me on Twitter @dcode!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

#dcode #javascript #webdev
Рекомендации по теме
Комментарии
Автор

Check out my similar video on Session Storage:

dcode-software
Автор

I've been struggling with JS & localStorage for MONTHS. This video really helped me understand the basics in a way no one else has. Thank you so much! Definitely going to share this with anyone else struggling

guardian
Автор

I google for a web dev concept, i find dcode, i click and watch. Once again, concise and with examples all in plain js, excellent work! Keep it up!

luciusrex
Автор

I love the simplicity and approach of demonstrating it.

farhanyousaf
Автор

Amazing tutorial. You made it so much easy and simplified. Thanks man. Keep up the good work.

arshiasaleem
Автор

Thank you. The most useful tutorial i could find. you're good at this

MrPurpledin
Автор

Simple and awesome demo! Easy to follow and very useful. Thank you!

ulaganathanmahadevan
Автор

Cleanest explanations on youtube hands down!

judaspriest
Автор

I am getting goose bumps from this channel.. Thanks a lot you teach extreamely good.. the best programming channel and u are great teacher. Sir please keep on uploading web-development lessons.. !!Love from nepal... BIG FAN

kshitizshah
Автор

Great tutorial, you're a natural!

chrissythompkin
Автор

Thanks man. This is a very good tutorial. Give this man props 👏🤝

rioma
Автор

Thank you very much for your lesson, it's pretty laconic & clear!

adagordon
Автор

The best teacher on youtube, respect!

nguyendat
Автор

thank you dcode for making this video. it's really help to undestand more about local storage and how to use it using Javascript and your explanation is easy to understand for newbie like me who learnt to program for very first time so thank you again and have a nice day

vincenttok
Автор

A complete explanation and very clear. 🙏🏼

ercntreras
Автор

I was looking for this video for months I got finally thank you very much

bimalakamani
Автор

This was awesome! Thank you for the simplicity~ :)

niloofar
Автор

Very good video about Local Storage. Clear and Direct.

draganvidakovic
Автор

you're appreciated for this masterpiece. made this so easy to understand: THANKS

ayen
Автор

love the explanation. straight to the point 👍

samcodes
join shbcf.ru