Solved

Case 11-2 Gerard Has Inherited Some Messy Code from Sheena,a Colleague Who

Question 104

Multiple Choice

Case 11-2
Gerard has inherited some messy code from Sheena,a colleague who had to move onto another project in a hurry before she had a chance to clean it up for him and leave it in better shape.He has some work to do to clean it up.
-Gerard has found another problem.He knows that Sheena was trying to assign an image to a defined location,but this,too,is not working.How should he rewrite the statement so that it will work? Assume that the file to be assigned to the image object source property is hickory-jpg"


A) document.elementID(img) .src="hickory-jpg"
B) document.acquire(img) .src="hickory-jpg"
C) document.get(img) .src="hickory-jpg"
D) document.getElementById(img) .src="hickory-jpg"

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents