Tell us what’s happening:
Test 1 “You should have a booWho function” passes, but every other test fails, despite my console displaying the correct output.
Your code so far
function booWho(argument) {
typeof(argument) === "boolean" ? console.log(true) : console.log(false);
}
booWho(true);
booWho(false);
booWho([1,2,3]);
booWho([].slice);
booWho({ "a": 1 });
booWho(1);
booWho(NaN);
booWho("a");
booWho("true");
booWho("false");
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Challenge Information:
Build a Boolean Check Function - Build a Boolean Check Function