Question: QUESTION 10 What does the variable m hold after these lines execute? var x = [red, orange, yellow, green, blue]; m = x.splice(2, 2); [red,yellow]
QUESTION 10
What does the variable m hold after these lines execute?
var x = ["red", "orange", "yellow"", "green", "blue"]; m = x.splice(2, 2);
| ["red","yellow"] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ["yellow","green"] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ["red", "orange"] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "["orange","yellow"]
QUESTION 12 This code is an example of ____. if(document.getElementById) { x = document.getElementById("box").value; } else { x = document.form1.box1.value; }
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
