Skip to content

YuriCendejas/Boolean_Check_Function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Boolean_Check_Function

freecodecamp.org quick lab project

Rules: Build a Boolean Check Function In this lab, you will build a function that checks if a value is classified as a boolean primitive.

Boolean primitives are true and false.

Objective: Fulfill the user stories below and get all the tests to pass to complete the lab.

User Stories:

You should have a function called booWho that receives one argument. If the argument received is a boolean primitive, the function should return true. If the argument is any other value, the function should return false. Tests: Waiting:1. You should have a booWho function. Waiting:2. booWho(true) should return true. Waiting:3. booWho(false) should return true. Waiting:4. booWho([1, 2, 3]) should return false. Waiting:5. booWho([].slice) should return false. Waiting:6. booWho({ "a": 1 }) should return false. Waiting:7. booWho(1) should return false. Waiting:8. booWho(NaN) should return false. Waiting:9. booWho("a") should return false. Waiting:10. booWho("true") should return false. Waiting:11. booWho("false") should return false.

About

freecodecamp.org quick lab project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors