An Introduction to Local Storage with JavaScript

  Рет қаралды 65,368

Zac Gordon

Zac Gordon

Күн бұрын

Пікірлер: 56
@ilTHfeaa
@ilTHfeaa 6 жыл бұрын
when my prof spent 2 lectures trying to explain this but this video explains it better in 15 minutes lmao
@ahmederaqi
@ahmederaqi 5 жыл бұрын
very clean video
@HashimWarren
@HashimWarren 5 жыл бұрын
This is the best explanation on localstorage I've found. Super clear, all substance, no filler
@KennieDevCamp
@KennieDevCamp 4 жыл бұрын
This tutorial is well detailed, hit the nail on the head type of content, no withholding knowledge. Ver good!
@tonypatino1765
@tonypatino1765 3 жыл бұрын
Amazing video!
@chiefdakwa3255
@chiefdakwa3255 4 жыл бұрын
Great tutorial. Concise and great presentation. Thanks man
@FayettepressWebDesign
@FayettepressWebDesign 6 жыл бұрын
This was a fantastic explanation! Clear, concise, and well-structured. Thanks for doing such a great job!
@joq6356
@joq6356 4 жыл бұрын
Thank you for this video! Really help clear up things!
@amazingguys8169
@amazingguys8169 6 жыл бұрын
Best Explanation Ever!!!!!!!
@HappyMomof8
@HappyMomof8 2 жыл бұрын
Just what I needed! Thank you!
@sdvloger621
@sdvloger621 5 жыл бұрын
Very nice explanation on local host like it + love it
@saravafaei7708
@saravafaei7708 Жыл бұрын
It was very clear. Thank you ❤️
@subbu2677
@subbu2677 5 жыл бұрын
Awesome explanation bro ....
@youngbuzzy1
@youngbuzzy1 5 жыл бұрын
The explanation is well defined. It is very clear, thanks
@greggfineguitar
@greggfineguitar 6 жыл бұрын
Well presented, very clearly explained!
@iancarr3923
@iancarr3923 5 жыл бұрын
Very useful - easy to understand. Thanks
@viktornerlander1409
@viktornerlander1409 6 жыл бұрын
This is huge. Thank you so much!
@Bayo106
@Bayo106 4 жыл бұрын
Thanks I think I've learnt a lot here
@syedkashifnaqvi1268
@syedkashifnaqvi1268 5 жыл бұрын
very clean video
@elladitch9698
@elladitch9698 5 жыл бұрын
Really helpful, Thx, Zac!
@kunalpandey7189
@kunalpandey7189 5 жыл бұрын
thanks a lot...this was very helpful
@easyeli728
@easyeli728 5 жыл бұрын
Thank you!
@nayeemshaik5910
@nayeemshaik5910 4 жыл бұрын
really helpful thank you
@abrahamnalisi4648
@abrahamnalisi4648 5 жыл бұрын
So helpful. Thanks man
@EricFu-qh5fw
@EricFu-qh5fw 6 жыл бұрын
thank you so much, Great Help!
@zolisawelani9338
@zolisawelani9338 5 жыл бұрын
This I enjoyed.
@goldbee3091
@goldbee3091 5 жыл бұрын
what if you want to use this for the values of radios, checkboxes or the select dropdown menus?
@lukescheller7216
@lukescheller7216 6 жыл бұрын
Awesome tutorial! Quick question, roughly how many entries can you store in localStorage?
@rudolfolah7773
@rudolfolah7773 6 жыл бұрын
Juno Lee I think it's more about memory limitations, I remember seeing a small number like 2 MB. So you can have a lot of small entries or a few large ones.
@shivanibali2088
@shivanibali2088 6 жыл бұрын
Perfect!
@smoothsan3072
@smoothsan3072 Жыл бұрын
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 ?
@binsarharseno
@binsarharseno 6 жыл бұрын
thank you is very helpful :)
@nageshbk1
@nageshbk1 5 жыл бұрын
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
@jesusgonzalez7059
@jesusgonzalez7059 4 жыл бұрын
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!
@autopilot6942
@autopilot6942 6 жыл бұрын
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
@mycloudvip
@mycloudvip 6 жыл бұрын
AWESOME... Can this work for saving this type of data into a remote s3 bucket? using JS? thanks
@ZacGordon
@ZacGordon 6 жыл бұрын
Well you would have to access s3 using it's own API. There is no built in integration between S3 and local storage
@JeZZGro
@JeZZGro 4 жыл бұрын
How about array of objects?
@cmtg4471
@cmtg4471 4 жыл бұрын
How many storage there are in android webview
@FauziJabbar
@FauziJabbar 5 жыл бұрын
Seperti session in php ~ and wait what different with cache ?
@geeksinsuits
@geeksinsuits 6 жыл бұрын
what data types can local storage to store ?
@ZacGordon
@ZacGordon 6 жыл бұрын
Strings, which is why we convert to JSON, which is a string 👍
@zlackbiro
@zlackbiro 5 жыл бұрын
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) }} 😎
@NuncNuncNuncNunc
@NuncNuncNuncNunc 5 жыл бұрын
I would not recommend this splitting on a delimiter method. JSON.stringify and JSON.parse are more general, easier to read, browser tools understand JSON, other developers (including the future you) understand JSON.
@yimiyyussef
@yimiyyussef 4 жыл бұрын
I tried your method, it doesn't store to localStorage
@mihaiimihaii5530
@mihaiimihaii5530 4 жыл бұрын
dont work
@shawnbks9090
@shawnbks9090 7 жыл бұрын
not a very good teacher at all.
@StyledJavaScript
@StyledJavaScript 6 жыл бұрын
Not a very informative comment at all.
@dansintean6820
@dansintean6820 6 жыл бұрын
if(numOfArguments < 1) { ignoreComment(); }
@igordjurdjic7380
@igordjurdjic7380 6 жыл бұрын
Delete comma before your curly brace and that function will gladly work :) :D
@dansintean6820
@dansintean6820 6 жыл бұрын
xD. Sorry about that.
@mihaiimihaii5530
@mihaiimihaii5530 4 жыл бұрын
dont work
Introduction to the VanillaPress Project
2:06
Zac Gordon
Рет қаралды 745
JavaScript LocalStorage and Session Storage API Tutorial
19:01
小丑和白天使的比试。#天使 #小丑 #超人不会飞
00:51
超人不会飞
Рет қаралды 45 МЛН
WORLD BEST MAGIC SECRETS
00:50
MasomkaMagic
Рет қаралды 38 МЛН
My daughter is creative when it comes to eating food #funny #comedy #cute #baby#smart girl
00:17
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 411 М.
Test-Driven Development // Fun TDD Introduction with JavaScript
12:55
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,2 МЛН
cookies vs localStorage vs sessionStorage - Beau teaches JavaScript
9:05
freeCodeCamp.org
Рет қаралды 174 М.
Local storage crash course in Hindi | Coder's Gyan🔥
51:08
Coder's Gyan
Рет қаралды 12 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
JavaScript Cookies vs Local Storage vs Session Storage
14:28
Web Dev Simplified
Рет қаралды 748 М.
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
SignUp Form with LocalStorage  2 | Multiple User Data Storage
18:21
Samad Kanton
Рет қаралды 19 М.
小丑和白天使的比试。#天使 #小丑 #超人不会飞
00:51
超人不会飞
Рет қаралды 45 МЛН