Kizspy Question: 28
(Choose 1 answer)
1.
var fruits;
2.
fruits ["Banana", "Orange", "Apple", "Mango"];
3.
FJOVERFLOW.COM
I would like to display the length of the array "fruits". What statement do you use to insert the 3rd code line?
A. Window.alert(fruits);
B. Window.alert(fruits.length);
C. Window.alert(fruits.length());
D. Window.alert(length);