When a user enters text into the input element, I want to be able to save what they type, so that if they refresh it will still be cached.
const input = document.getElementById('input')
input.onchange = function(){
const key = input.value;
localStorage.setItem('key', key)
input.value = localStorage.getItem("key");
};