I don’t get what the instructions are asking for. Or well I understand a bit but I’m having trouble figuring out the rest. Like I have no clue what kind of an argument it’s looking for. and because I struggle with the argument I can’t really do much about the condition. For me the instructions are often way too vague and I have hard time understanding what I’m supposed to do.
For a function to take an argument, you will need a parameter in your function definition.
EXAMPLE:
function multiplyByTen(num) {
return num*10
}
console.log(multiplyByTen(10)) // 100
In the above example, the parameter is num and the argument (supplied to the parameter when the function is called) is 10.
So, in your function definition, you need to have a parameter. Inside the function body you need to evaluate if any value passed as an argument (via your parameter) is a boolean primitive or not. Essentially, you need to determine what type of value is passed to the function when it is called. There is a method which can be used to do exactly this.
Thanks I finally figured it out! It was a lot simpler than I thought as it usually is. But then again I didn’t know I needed to check the type before you pointed it out.