What does this edit-scope check print?

from Constraint-rich prompts
Node 24 beginner 2 min

What does this edit-scope check print?

JavaScript
const allowed = new Set([
  "src/cart.js",
  "test/cart.test.js",
]);
const changed = [
  "src/cart.js",
  "README.md",
];

const inScope = changed.every((path) => allowed.has(path));
console.log(inScope ? "PASS" : "STOP");
Open in playground
Report an error