Question: 18 Which of the following is the correct JavaScript syntax to assign the photo spring.jpg to an Image defined in the body as follows: *

18 Which of the following is the correct JavaScript syntax to assign the photo "spring.jpg" to an Image defined in the body as follows: * (2 points) doucument.getElementById("winter").setAttribute("src","spring.jpg"); doucument.getElementByld("season").setAttribute("src,"winter.jpg): doucument.getElementByld("season").setAttribute("src" spring.jpg"); spring.jpg"; season = season.src("src", "spring.jpg"); season.open("spring.jpg")
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
