var arr = [2, 0, 6, 1, 77, 0, 52, 0, 25, 7];var newArr = [];var j = 0;for (var i = 0; i < arr.length; i++) {if (arr[i] >= 10) {_________________}}console.log(newArr);补充代码,运行后newArr数组中存放的是arr数组中所有大于等于10的值。正确的补充代码选项是( )。
A. j++;newArr[j] = arr[i];
B. newArr[j] = arr[i];j++;
C. arr[i]=newArr[j];j++;
D. j++;arr[i]=newArr[j];