Answers for "função que retorna uma media aritmética javascript"

0

função que retorna uma media aritmética javascript

let average = (array) => array.reduce((a, b) => a + b) / array.length;
console.log(average([1,2,3,4,5]));
Posted by: Guest on July-09-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language