Father of Samwise

Local Storage

I love eating cookies, but I guess they're not cool on the web nowadays. Instead, HTML5 gives us local storage. Neat stuff. Type your name and your favorite pizza below and click a button to either add your entry, remove your entry, or clear all of your entries.

Working with local storage was the easy part of this test. The difficult part was eschewing jQuery and writing all of the interactivity with plain ol' JavaScript. I also tried adding and removing elements programmatically instead of just hiding them or their content.

Name:
Pizza:

Current Storage Contents