Tell us what’s happening:
My code can’t seen to pass beyond step one but the return value are all check out. Am I missing something or my whole function wrong? I am so confuse.
Your code so far
const booWho = (argument) => {
return argument === true || argument === false ? 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Challenge Information:
Build a Boolean Check Function - Build a Boolean Check Function