Modules 02


// file-1.js
const sum = (x, y) = > x + y;
const square = x = > x * x;
const mean = data => data.reduce(sum) / data.length;

Export the functions sum and square by using the native node.js syntax (also known as the CommonJS syntax).







Join the waiting list to see the solution