Solutions to my answers are not saving

My codes after completing is not being saved in the localStorage.