Build a Boolean Check Function

I got tests 1, 2, 3 correct. But the rests of the tests for arguments of any other value I can’t pass. Can someone please help?

function booWho(argument) {

if (argument === true || argument === false) {

console.log(true);

} else {console.log(false);}

return true || false;

}

console.log(booWho(true));

console.log(booWho(false));

console.log(booWho([1, 2, 3]));

console.log(booWho([].slice));

console.log(booWho({ “a”: 1 }));

console.log(booWho(1));

console.log(booWho(NaN));

console.log(booWho(“a”));

console.log(booWho(“true”));

console.log(booWho(“false”));

Welcome to the forum @chibilou0x !

Hopefully, this MDN reference will help you:

Boolean - JavaScript | MDN

I still don’t get it. I don’t know how to link the MDN ‘Creating false values’ examples to this practice.

I am honestly not sure what else I need to add to my function block in order to prove that the other arguments are false.

This is probably a more helpful MDN link:

typeof - JavaScript | MDN

this is what your function is returning, which means it always return the same thing

removed by moderator

/* This work

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.