What, if anything, is wrong with the following JavaScript code?
<script>document . write("<img src = 'puppy . JPG'/>") ;</script>
A) You cannot use document . write() to display an image; it can only display text .
B) The outer double quotes are not needed with the document . write() function .
C) You cannot use the document . write() function with JavaScript; it must be used with a form .
D) Nothing is wrong with this code .
Correct Answer:
Verified
Q17: Variables declared within a function
A) cannot be
Q18: Output directly onto a web page from
Q19: A variable declared in a function is
Q20: When defining a function that sends a
Q21: The inputs to a function are called
A)
Q23: The values returned by the Math .
Q24: The numbers generated by the Math .
Q25: Given the following JavaScript function, which of
Q26: If you wanted the following function to
Q27: After running the following JavaScript, what is
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents