Hi, I was trying to display a text when a button is clicked. I added eventListener to the button and used textContent function to display the string. However the script does not seem to work. I am pasting a link to my code -
I cannot understand where am I going wrong. I am new to JS and might have done something stupid. Any help would be great help. Thank you