Why is this wrong when the console logs the right value?

function performSum(accumulator, currentValue){
  return accumulator + currentValue;

const newSum = newNumbers.reduce(performSum);

Many of the lessons want you to get to the answer exactly the way the instructions describe. For example, in your case, is it possible the lesson wants you to forego the step of assigning a new variable and instead log the result of the function call directly to the console in one line.