15_array_plus.js 80 B

123
  1. let arr = [5, 6];
  2. arr[2] = arr[0] + arr[1];
  3. console.log(arr); // -> [5, 6, 11]