Question: Could you please help me write a Javascript code that will show a smiley face picture when I click the button. The picture should not

Could you please help me write a Javascript code that will show a smiley face picture when I click the button. The picture should not display until the button is pressed.

Here is my attempt at the code. It does not work. Please keep the code as simple as you can as I am new to coding. Please also use the

tag if possible, onclick and use the getElementById.

Thank you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!