Local Storage for Beginners | JavaScript Tutorial
Вставка
- Опубліковано 11 гру 2022
- 👉 Source code: openjavascript.info/2022/06/2...
⚡ Looking for high-performance, afforable web hosting? We use HostWithLove: bit.ly/3V2RM9Q ❤️
This tutorial shows you how to use browser local storage in JavaScript (Web Storage API). This includes localStorage, sessionStorage, and how to pass arrays and objects through local storage.
#localstorage #sessionstorage #javascript #javascript_tutorial #webdevelopment
🔔 Subscribe for more tutorials just like this: / @openjavascript
⚡ NEW: Web development courses from Meta Inc. ⚡
Front-End Developer Professional Certificate: imp.i384100.net/b3dMek
Back-End Developer Professional Certificate: imp.i384100.net/gbYorg
iOS Developer Professional Certificate: imp.i384100.net/Jr7qj2
Meta Android Developer Professional Certificate: imp.i384100.net/oeYnGo
Meta Database Engineer Professional Certificate: imp.i384100.net/BX7KGB
Website: openjavascript.info
Thanks for watching!
👉 Source code: openjavascript.info/2022/06/29/save-data-to-the-browser-with-localstorage-and-sessionstorage/
I was freaking out cuz i have never done javascript before and havent done html since middle school and i had to basically do this for a group project. thank you so much for this video, the example was exactly what i needed.
subscribed, very helpful, a bit above my understanding at this point in my journey but you were so clear and its appreciated
Thank you sir! I appreciate big time for this Videos. They've been helpful.
That's great to hear!
Dude, thank you so much for these awesome JS videos!
Though I´m learning C# now due to the need for a job in Brazil, I still watch and learn A LOT from you!
God bless!
You're welcome! I enjoy making the videos.
That's interesting that you're learning C# because of job demand. Are there not so many JavaScript jobs around in Brazil at the moment`?
@@OpenJavaScript There are good jobs for Javascript here, but for more "senior" developers. For juniors is almost impossible. I enjoy a lot JS and React, and now I´ll do the same with C# and Angular! haha
Eu sou de Argentina e nao é dificil encontrar um trabalho se voce aprender JS, mas é um poco dificil facerlo si voce aprender C# lol@@viniciusm.m.7822
You are a Legend. ✌️👏
Thanks for watching :)
You deserve millions of subscribers ❤
Thanks, this is a really kind comment.
If that were to ever happen, I'd be delighted!
Subscribed
How can I do this:
If a local key, entered by the user already exists in the local storage, then add a 1 to it.
For example:
If local key nickname already exists, then, make it nickname1.
?
This should do the trick:
// Create item:
localStorage.setItem('item', 'nickname');
// Update item:
if (localStorage.getItem('item')) {
const val = localStorage.getItem('item') + 1;
console.log(val); // nickname1
localStorage.setItem('item', val);
}
Take your heart
Thanks ❤️
I watched a lot of tutorials but they never explained why we needed to do so muh with JSON and all. Thank you for this amazing tutorial🫶
That's great, I'm really glad you found this tutorial so useful. Thanks for reaching out to let me know, good luck on your further learning journey :)