An Introduction to Local Storage with JavaScript

An Introduction to Local Storage with JavaScript

Zac Gordon

6 лет назад

65,291 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@saravafaei7708
@saravafaei7708 - 05.07.2023 05:42

It was very clear. Thank you ❤️

Ответить
@smoothsan3072
@smoothsan3072 - 13.01.2023 11:01

hi sir, value on localStorage still can be retrieve on new tab ? i mean, the value on local storage not dissapear even on new tab ?

Ответить
@HappyMomof8
@HappyMomof8 - 26.10.2021 23:30

Just what I needed! Thank you!

Ответить
@tonypatino1765
@tonypatino1765 - 04.09.2021 16:39

Amazing video!

Ответить
@chiefdakwa3255
@chiefdakwa3255 - 02.10.2020 06:11

Great tutorial. Concise and great presentation. Thanks man

Ответить
@cmtg4471
@cmtg4471 - 19.08.2020 02:07

How many storage there are in android webview

Ответить
@Bayo106
@Bayo106 - 05.06.2020 22:13

Thanks I think I've learnt a lot here

Ответить
@nayeemshaik5910
@nayeemshaik5910 - 04.04.2020 17:17

really helpful thank you

Ответить
@JeZZGro
@JeZZGro - 28.03.2020 19:23

How about array of objects?

Ответить
@mihaiimihaii5530
@mihaiimihaii5530 - 07.03.2020 20:27

dont work

Ответить
@mihaiimihaii5530
@mihaiimihaii5530 - 07.03.2020 20:27

dont work

Ответить
@KennieDevCamp
@KennieDevCamp - 24.12.2019 09:00

This tutorial is well detailed, hit the nail on the head type of content, no withholding knowledge. Ver good!

Ответить
@joq6356
@joq6356 - 23.10.2019 06:07

Thank you for this video! Really help clear up things!

Ответить
@jesusgonzalez7059
@jesusgonzalez7059 - 17.10.2019 17:54

I would avoid using the same name for the variable and the localStorage variable ... it may confuse people. Irecomment the var to besomething like myValue and the localStorage var as something else...this way people can distinguish what is what. Other than that...great video!

Ответить
@kunalpandey7189
@kunalpandey7189 - 10.10.2019 14:46

thanks a lot...this was very helpful

Ответить
@sdvloger621
@sdvloger621 - 21.07.2019 11:26

Very nice explanation on local host like it + love it

Ответить
@zolisawelani9338
@zolisawelani9338 - 08.07.2019 17:50

This I enjoyed.

Ответить
@FauziJabbar
@FauziJabbar - 04.07.2019 12:41

Seperti session in php ~ and wait what different with cache ?

Ответить
@syedkashifnaqvi1268
@syedkashifnaqvi1268 - 13.05.2019 15:52

very clean video

Ответить
@nageshbk1
@nageshbk1 - 08.05.2019 09:34

sir,
I am not a software engineer, I can never forget those old days late nineties with slow internet connection. Those days we could go back to the visited web pages in case internet connection breaks . that thing is not available in modern browser Now every time inter connection breaks we got download the page again. Is it possible to use or configure local storage as of that time

Ответить
@blackzerosrb
@blackzerosrb - 30.04.2019 01:10

You dont need to stringify when you setItem if your object has couple of keys. You can do hybrid one. You can save it as Object directly and pull data getItem but split(" ") the output from getItem results. Example:
localStorage.setItem("name", "key1=5 key2=10")
var stored = localStorage.getItem("name")
var data = stored.split(" ")
var value = data[0].split("=")
alert("key1: " + value[1])
Also, you can get localStorage without getItem. You can call your item by localStorage["itemName"]
loop true the localStorage searching multiple items witch starts with item123, item233, item333:
var storage = Object.keys(localStorage)
for (var i = 0; i < storage.length; i++) {
if (storage[i].includes("item")){
divTag.innerHTML += localStorage.getItem(i) }}
😎

Ответить
@goldbee3091
@goldbee3091 - 13.04.2019 18:45

what if you want to use this for the values of radios, checkboxes or the select dropdown menus?

Ответить
@subbu2677
@subbu2677 - 09.04.2019 20:49

Awesome explanation bro ....

Ответить
@elladitch9698
@elladitch9698 - 28.03.2019 06:13

Really helpful, Thx, Zac!

Ответить
@iancarr3923
@iancarr3923 - 21.03.2019 15:47

Very useful - easy to understand. Thanks

Ответить
@HashimWarren
@HashimWarren - 12.11.2018 01:26

This is the best explanation on localstorage I've found. Super clear, all substance, no filler

Ответить
@abrahamnalisi4648
@abrahamnalisi4648 - 11.11.2018 20:56

So helpful. Thanks man

Ответить
@easyeli728
@easyeli728 - 05.11.2018 02:09

Thank you!

Ответить
@youngbuzzy1
@youngbuzzy1 - 01.11.2018 01:23

The explanation is well defined. It is very clear, thanks

Ответить
@viktornerlander1409
@viktornerlander1409 - 04.10.2018 10:31

This is huge. Thank you so much!

Ответить
@mycloudvip
@mycloudvip - 24.09.2018 03:56

AWESOME... Can this work for saving this type of data into a remote s3 bucket? using JS? thanks

Ответить
@Prutswerk
@Prutswerk - 21.08.2018 21:09

14+ minutes for just 4 methods? Are you kidding me?
----------------------------------
localStorage.setItem("video","very very long, I would say ridiculously long")
localStorage.getItem("video")
localStorage.removeItem("video")
localStorage.clear()
---------------------------------
There. Took me 2 minutes to type.

Ответить
@FayettepressWebDesign
@FayettepressWebDesign - 17.08.2018 15:25

This was a fantastic explanation! Clear, concise, and well-structured. Thanks for doing such a great job!

Ответить
@geeksinsuits
@geeksinsuits - 08.08.2018 00:08

what data types can local storage to store ?

Ответить
@amazingguys8169
@amazingguys8169 - 23.07.2018 08:30

Best Explanation Ever!!!!!!!

Ответить
@EricFu-qh5fw
@EricFu-qh5fw - 14.07.2018 14:32

thank you so much, Great Help!

Ответить
@shivanibali2088
@shivanibali2088 - 22.05.2018 00:09

Perfect!

Ответить
@lukescheller7216
@lukescheller7216 - 03.04.2018 09:44

Awesome tutorial! Quick question, roughly how many entries can you store in localStorage?

Ответить
@ilTHfeaa
@ilTHfeaa - 12.03.2018 01:45

when my prof spent 2 lectures trying to explain this but this video explains it better in 15 minutes lmao

Ответить
@greggfineguitar
@greggfineguitar - 27.01.2018 15:40

Well presented, very clearly explained!

Ответить
@autopilot6942
@autopilot6942 - 23.01.2018 02:36

How can you use data in local storage to display on another page? Like clinking on a link on one page to display JSON data on another with that local storage? Ex: a link to a product details page! Thanks

Ответить
@binsarharseno
@binsarharseno - 19.12.2017 16:55

thank you is very helpful :)

Ответить
@shawnbks9090
@shawnbks9090 - 27.09.2017 12:56

not a very good teacher at all.

Ответить