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(" | "));
const weights = [4, 7, 10];
const labels = weights
.filter((weight) => weight >= 7)
.map((weight, index) => `${index}:${weight * 2}`);
console.log(labels.join(" | "));