Skip to content

Boo who free freecodecamp.org #35

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);
*/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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