clg no
unknown
plain_text
a year ago
349 B
7
Indexable
function willIComeToCollege(sheri, mehran) {
if (typeof sheri !== "boolean" || typeof mehran !== "boolean") {
throw new Error("Both inputs should be boolean values (true or false).");
}
return (sheri || mehran) ? "I'll come" : "Maybe I won't come.";
}
let result = willIComeToCollege(true, false);
console.log(result);
Editor is loading...
Leave a Comment