Question: For HTML website class: Write a loop to change the source of images with ids dog 1 , dog 2 , dog 3 to cat

For HTML website class:
Write a loop to change the source of images with ids dog1,dog2,dog3 to cat.jpg.
(Use a loop to get the numbers, and use string concatenation to generate the ids)
Please help, this is the last homework problem I have not answered out of 3 questions so if I miss this one then I already have a 60. Please show work so I can attempt to understand. Thanks

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 Accounting Questions!