Saving user choice on local storage - need a help

I need a help here, I am trying to save user choice in localstorage and reuse it when user visit again, not working as expected, what I am doing wrong here

https://codepen.io/srikanth-kanjarla/pen/dqOzbJ?editors=1011

hey thank you very much