localStorage.setItem("number", 2);
localStorage.setItem("string", "This is a string!");

let object = {
  id: 2, 
  name: "John"
}

localStorage.setItem("object", JSON.stringify(object))

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.