Can you please tell me what I’m doing wrong with my code:
const truthyOrFalsy = value => {
if (value === true) {
return true;
} else {
return false;
}
}
console.log(truthyOrFalsy(0));
I got this error message:
If an argument that evaluates to truthy is passed in to the function, the function should return true