Click in order · JavaScript and TypeScript course · Module 8: Events and the DOM

localStorage Methods

Arrange the steps for saving and reading data from localStorage:

Items to click

  • JSON.stringify(data)
  • JSON.parse(raw)
  • localStorage.setItem(key, ...)
  • localStorage.getItem(key)

You can check the correct answer by solving this task in the CodeWorlds game.