Skip to content

Boo who free freecodecamp.org #35

@YKalashnikov

Description

@YKalashnikov

function booWho(bool) {
// the fastet way to solve this problem
return typeof bool==="boolean";
}

booWho(null);

/* another way to solve it

function booWho(bool) {
if (bool===true || bool===false){
return true;

}
else{
return false;
}
return bool;
}

booWho(false);
*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions