Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to Subtract the numbers in the array, starting from the left in javascript

// How to Subtract the numbers in the array, starting from the left in javascript
let numberSubtract = [325, 25, 100];
let resultSubtract = numberSubtract.reduce((a, b) => a - b);
console.log(resultSubtract);
 
PREVIOUS NEXT
Tagged: #How #Subtract #numbers #starting #left #javascript
ADD COMMENT
Topic
Name
4+3 =