1 let array = [1, 3, 6, 8, 9, 0, 5]; 2 /*
3 index是數組索引 4 value代表數組的值 5 arr是指整個數組 6 */
7 array.forEach((value, index, arr) => { 8 console.log('數組=' + arr); 9 console.log('索引號=' + index, '值=' + value); 10 });