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

КОМЕНТАРІ • 20

  • @OpenJavaScript
    @OpenJavaScript  Рік тому

    Thanks for watching!
    👉 Source code: openjavascript.info/2022/06/29/save-data-to-the-browser-with-localstorage-and-sessionstorage/

  • @audreyandremington5265
    @audreyandremington5265 5 місяців тому

    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.

  • @MarstonH
    @MarstonH 7 місяців тому

    subscribed, very helpful, a bit above my understanding at this point in my journey but you were so clear and its appreciated

  • @ultronsam1214
    @ultronsam1214 Рік тому +1

    Thank you sir! I appreciate big time for this Videos. They've been helpful.

  • @viniciusm.m.7822
    @viniciusm.m.7822 Рік тому +1

    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!

    • @OpenJavaScript
      @OpenJavaScript  Рік тому +1

      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`?

    • @viniciusm.m.7822
      @viniciusm.m.7822 Рік тому

      @@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

    • @raven.4815
      @raven.4815 10 місяців тому

      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

  • @ultronsam1214
    @ultronsam1214 Рік тому

    You are a Legend. ✌️👏

  • @Programming-Fun-With-Hima
    @Programming-Fun-With-Hima Рік тому +1

    You deserve millions of subscribers ❤

    • @OpenJavaScript
      @OpenJavaScript  Рік тому +1

      Thanks, this is a really kind comment.
      If that were to ever happen, I'd be delighted!

    • @tqaquotes9379
      @tqaquotes9379 Рік тому

      Subscribed

  • @tqaquotes9379
    @tqaquotes9379 Рік тому +1

    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.
    ?

    • @OpenJavaScript
      @OpenJavaScript  Рік тому +1

      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);
      }

  • @Franck_Polla
    @Franck_Polla Рік тому

    Take your heart

  • @ibukunoluwafabunmi2685
    @ibukunoluwafabunmi2685 Рік тому

    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🫶

    • @OpenJavaScript
      @OpenJavaScript  Рік тому +1

      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 :)