How to Subtract the numbers in the array, starting from the right in javascript
// How to Subtract the numbers in the array, starting from the right in javascript
let numberSubtractRight = [100, 25, 100];
let resultSubtractRight = numberSubtractRight.reduceRight((a, b) => a - b);
console.log(resultSubtractRight);