What does this program print?

from Functions
Node 24 beginner 2 min

What does this program print?

JavaScript
console.log(label('A7'));

function label(id) {
  return `order:${id}`;
}

try {
  console.log(total([2, 3]));
} catch (error) {
  console.log(error.name);
}

const total = (values) => values.reduce((sum, value) => sum + value, 0);
Open in playground
Report an error