#2's reducer functions needs to return acc because acc.push returns the pushed item:
const squaresOfNumbers = numArray => numbers.reduce(
(acc, item) => {
acc.push(item * item);
return acc;
},
[]
);
Lead Software Developer