JSFiddle - React, Tailwind, and code Playground

by Christopher McCulloh

JavaScript

localStorage.firstName = "Chris"; //Sets local storage variable firstName to Chris
alert(localStorage.firstName); //Alerts Chris, which is the value of the local storage variable firstName
delete localStorage.firstName; //Deletes the local storage variable firstName