Control the color of the div1 class with the color picker
Persist that color in localStorage so that the div remains the chosen color on reload
To do that follow these steps
Add an event listener for the page load
** Get your color from local storage or a default color if you don’t have on
** set your div and picker to be the current color
make a method to handle the color pickers change
** get the current color value
** set your div1 class background color equal to that value
** store your value in local storage
Overall your use of the localStorage api isn’t incorrect. The main issue is that you tried to call it as a method on your div. Also, it’s been years since I’ve used jquery but make sure you are correctly setting the styles on your elements. I’ve never used the .css property of an html element so I just used .style in my codepen