Which JavaScript version was the first to allow image swapping, or image roll-overs?

  1. JavaScript 1.0

  2. JavaScript 1.1

  3. JavaScript 1.2

  4. JavaScript 1.3


Correct Option: B

AI Explanation

To answer this question, we need to understand the history of JavaScript and its features.

Image swapping, or image roll-overs, refer to the ability to change an image when a user interacts with it, such as hovering over it with a mouse. This functionality is commonly used in web development to enhance user experience.

The correct answer is B) JavaScript 1.1. This version of JavaScript introduced the onmouseover and onmouseout events, which allowed developers to create image roll-over effects. The onmouseover event is triggered when the mouse pointer is moved over an element, while the onmouseout event is triggered when the mouse pointer is moved away from an element.

Option A) JavaScript 1.0 - This option is incorrect because JavaScript 1.0 did not have the capabilities to handle image swapping or roll-over effects.

Option C) JavaScript 1.2 - This option is incorrect because JavaScript 1.2 did not introduce any new features related to image swapping or roll-overs.

Option D) JavaScript 1.3 - This option is incorrect because JavaScript 1.3 did not introduce any new features related to image swapping or roll-overs.

Therefore, the correct answer is B) JavaScript 1.1, as it was the first version to allow image swapping or roll-over effects.

Find more quizzes: