+ 3

How do you make an image appear when a button is clicked with JavaScript?

I would appreciate if someone could explain the logic behind their code as Iā€™m new to javascript! Thank you so much in advance! https://code.sololearn.com/WoEqahKki902/?ref=app

14th Feb 2020, 9:01 PM
tori the crafter šŸ’›
tori the crafter šŸ’› - avatar
2 Answers
+ 1
thanks MiriellešŸ‘½ did you use jquery?
14th Feb 2020, 11:33 PM
tori the crafter šŸ’›
tori the crafter šŸ’› - avatar
0
When the button is clicked, the image element visibility is changed from none to visible
14th Feb 2020, 9:20 PM
Gabriel Ilie
Gabriel Ilie - avatar