localStorage.setItem("string", "this is a string");

console.log(localStorage.getItem("string"));
//Result: 
// this is a string

localStorage.removeItem("string");
console.log(localStorage.getItem("string"));
//Result: 
//null

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.