The JavaScript code for displaying "Beetlejuice" three times is ____.

A. var index = 0;
while (index < 3) {
   document.write("Beetlejuice ");
   index = index + 1;
}
B. var index = 1;
while (index < 3) {
   document.write("Beetlejuice ");
   index == index + 1;
}
C. var index = 0;
while (index <= 3) {
   document.write("Beetlejuice ");
   index = index + 1;
}
D. var index = 0;
while (index = 3) {
   document.write("Beetlejuice ");
   index = index + 1;
}


Answer: A

Computer Science & Information Technology

You might also like to view...

A gamepad is a handheld console with buttons and other input mechanisms you typically press with your thumbs to play a game.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of the following statements are true?

a. A handler object fires an event. b. A source object fires an event. c. Any object such a String object can fire an event. d. A handler is registered with the source object for processing the event.

Computer Science & Information Technology

The CPU consists of the arithmetic logic unit and the ________

A) processor B) control unit C) storage device D) instruction cycle

Computer Science & Information Technology

Photoshop’s ____ translates colors from the color space of one device into a device-independent color space.

a. color management system b. color palette c. color gallery d. color generator

Computer Science & Information Technology