Title: Quiz Week 7 Arrays
Course: Fall 2023 - WEBD 164 (41934) > Section: Week 7 (Oct 2) How to Work with Arrays – basic concepts

Q: What is the result of the alert() statement in the below code...

<script>

var myArray = new Array();

myArray[0] = "apples";

myArray[1] = "oranges";

myArray[2] = "pears";

myArray[3] = "peaches";

alert(myArray[2]);

</script>
- apples
- oranges
- pears
- peaches
A: pears

Q: It is possible to create an array using the below syntax...  true or false

var myArray = new Array("apples", "peaches", "pears");
- True
- False
A: True

Q: A for - in loop is a special type of loop that is designed specifically for arrays   true or false
- True
- False
A: True