Tambahkan urutan 6 angka berbeda bersama -sama JavaScript

const sequenceSum = (begin, end, step) => {
  let sum = 0
  for (let i = begin; i <= end; i += step) sum += i;
  return sum
};
console.log(sequenceSum(2, 6, 2))
kouqhar