Editible Div With Memory (localStorage)
const el = document.createElement('div')
el.innerHTML = localStorage.memory == null ? 'type here' :
localStorage.memory
el.contentEditable = true;
document.body.appendChild(el);
document.addEventListener('keyup', () => {
localStorage.memory = el.innerHTML;
});
Create an editable div that remembers what was typed in it.