js what happens when we decrease the length of array code example
Example: javascript reduce sum
let nums = [1, 2, 3];
nums.reduce((curr, next) => curr + next);
let nums = [1, 2, 3];
nums.reduce((curr, next) => curr + next);