What does this program print?

from Type inference
TypeScript 6 beginner 3 min

What does this program print?

TypeScript
const weights = [4, 7, 10];
const labels = weights
  .filter((weight) => weight >= 7)
  .map((weight, index) => `${index}:${weight * 2}`);

console.log(labels.join(" | "));
Open in playground
Report an error