clg no
Anonymous
Plain Text
10/26/2024 4:50 AM
349 B
11
Indexable
Never
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