Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Reduce use

//Array Reduce
let arr=[12,14,15,28]
let numarr=arr.reduce((h1,h2)=>{
  return h1+h2
})
console.log(numarr)
Source by replit.com #
 
PREVIOUS NEXT
Tagged: #Reduce
ADD COMMENT
Topic
Name
7+2 =