clg no

 avatar
unknown
plain_text
6 months ago
349 B
4
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