So, I got the function to pass the tests. My question is, why is this all that is needed? There are 11 tests but I didn’t include any of them in my answer. Am I just overthinking things?
Your code so far
function booWho(bool) {
return typeof bool === "boolean";
}
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Safari/605.1.15
Challenge Information:
Build a Boolean Check Function - Build a Boolean Check Function
the tests are there to make sure that your function gives the correct output for various possible inputs
like, if you have to write a function that sum two numbers, and the tests are that 2+5 is 7, and 5+1 is 6, are you going to write the two sums inside the function, or are you going to write a function that can sum any two numbers?