how to decrease level of array in javascript code example Example: javascript reduce sum let nums = [1, 2, 3]; nums.reduce((curr, next) => curr + next);