Cant post boolean check function steps 2 and 3

exactly i put function bookWho(true, false) and nothing

i also put bookWho(arg1, arg2) nothing….function bookWho(arg1, arg2) nothing, same thing with true false, nothing

OHHHH boowho not bookwho

still didnt get it right

can someone help me?

i tried this: function booWho(argument) {

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

console.log(true);

}

booWho(true);

booWho(false);

booWho([1, 2, 3]);

booWho([].slice);

booWho({“a”: 1});

booWho(1);

booWho(NaN);

booWho(“a”);

booWho(“true”);

booWho(“false”);

please….i need help fromsomeone

function booWho(argument) {

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

console.log(true);

{

  else {

    console.log(false);

}

}

bookWho(true);

bookWho(false);

booWho([1, 2, 3]);

booWho([].slice);

booWho({“a”: 1});

booWho(1);

booWho(NaN);

booWho(“a”);

booWho(“true”);

booWho(“false”);

Please do not create duplicate topics for the same challenge. I have merged your post into your original topic.

Glad to see you finally added a parameter to your function definition and you’re using it in the body of your function rather than hard-coding values.

It’s also great that you have included the tests. If you wrap them in console.log(), you will be able to see the output on the screen.

Now that you’re off to a good start, back to this:

The instructions say, “…you will build a function that checks if a value is classified as a boolean primitive”

Boolean is a built-in object in JavaScript just like String, Array, etc.

If you look at this MDN JavaScript Reference and click “Built-in objects”, you will see a list of built-in types.

Can you think of a JavaScript operator that can tell you what type of object a value is?

Please do not bump topics like this. Just be patient.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.