Given the following code: 1 var myArray = [3,7,8]; 2 var tot; 3 for (var i =0; i < myArray.length; i=i+1) { 4  tot = tot + myArray[i]; 5  avg = tot/i; 6 } 7 alert(avg); Which lines of code will cause errors when you try to run the program? Choose all that apply.  多项选择题

A

4

B

2

C

1

D

5

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!