How do I read this solution?

Tell us what’s happening:
I have difficulty reading those short type of solutions.
If I was to read out my solution to you, am I reading this correctly:

Using the typeof operator I check the data type of the bool argument and then I check whether it equals to "boolean" type using a strict equality operator which by itself will return a boolean result of true - if it is a boolean type, or false - if it is any other data type.

**Your code so far**

function booWho(bool) {
return typeof bool === "boolean";
}

booWho(null);
**Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36

Challenge: Boo who

Link to the challenge:

You’re understanding it correctly.

1 Like

Hi @Aleksandar8 !

I added spoiler tags around your code since this is a working solution.

1 Like

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