Javascript – Toggle the visibility of an element when a button is clicked
I am trying to perform an exercise where I toggle the visibility of an element by accessing its ID. I can get it to disappear when I click it. However I dont understand what is wrong with my code so…