+ 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
4 Réponses
+ 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