29. Local storage

Aap kis language mein padhna chahoge?

Which language do you want to learn in?

Code aur technical words English mein hi rahenge. Aap baad mein bhi language badal sakte ho.

Lesson 29

Local storage

Unlock this lesson

Create a free account, then buy the course to open every lesson.

What you will learn in this lesson

  • What local storage is.
  • How to save and read a value with setItem and getItem.
  • Why you must turn lists and objects into text with JSON.stringify.
  • How to read them back with JSON.parse.
  • How to build a cart that survives a refresh.

60 minutes Lesson 29 of 30

Everything in Web Foundations

  • 30 step-by-step lessons
  • 3 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account