function booWho() {
return false
console.log(true, false)
}
function booWho() {
return false
console.log(true, false)
}
Please Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!
I cant do steps 2 and 3 which make booWho(true) and booWho(false) true
What does User Story #1 say about your function?
i still dont get it what are you trying to say ive tried everything
i even tried this: function booWho() {
return (false)
}
- You should have a function called
booWhothat receives one argument.
Just take it one step at a time.
This is User Story #1. What does it say your function should receive? Does your function definition have a parameter?
i tried putting, true, false, true and false, and various other things as parameters it didnt work
i even tried param, num,and others
I can’t help you if you won’t answer my questions.
it said i should receive primitives: true and false
Again, this is User Story #1:
What does it say your function should receive?
Your function definition is not correct. That’s why we’re starting there.
You have to pass a value to your function.
i tried posting a primitive and any other value, but nothing, what do you want me to do post everything?
The instructions say, “…you will build a function that checks if a value is classified as a boolean primitive”
How can you check if the value is a boolean primitive, if you don’t pass the value to your function?
i did do that, you werent paying attention to what i said
show you updated code, please
function booWho() {
return (true)
}
console.log(booWho(true))
You did not do that. Your function definition still does not have a parameter.
Do you understand what a function parameter is?
yes you pass it in parentheses, and i did that
no; you passed an argument to the function when you called the function, but your function definition does not have a parameter.
here’s an example of a function definition:
function myFunction(parameter1, parameter2)
here’s an example of a function call:
myFunction(arg1, arg2)