// Why is Boolean("false") true? // Teaching excerpts; see the explanation and boundaries on the episode page. // Make the rule explicit function parseFlag(value) { if (value !== "true" && value !== "false") { throw new Error("Expected true or false"); } return value === "true"; }