这段边界检查会输出什么?

来自 可执行规格
Node 24 入门 3分钟

这段边界检查会输出什么?

JavaScript
const threshold = 5000;
const subtotals = [4999, 5000, 5001];
const results = subtotals.map((subtotal) =>
  subtotal >= threshold ? "free" : "paid"
);
console.log(results.join(", "));
在试验场中打开
报告错误