What does this boundary check print?

from Executable specifications
Node 24 beginner 3 min

What does this boundary check print?

JavaScript
const threshold = 5000;
const subtotals = [4999, 5000, 5001];
const results = subtotals.map((subtotal) =>
  subtotal >= threshold ? "free" : "paid"
);
console.log(results.join(", "));
Open in playground
Report an error