Tell us what’s happening:
all my arguments are correct but i keep getting error
Your code so far
const booWho = (arg) => {
if (typeof arg === 'boolean') {
return "true"
}
else {
return "false"
}
}
console.log(booWho(true))
console.log(booWho(false))
console.log(booWho([1, 2, 3]))
console.log(booWho([].slice))
console.log(booWho({ "a": 1 }))
console.log(booWho(1))
console.log(booWho(NaN))
console.log(booWho("a"))
console.log(booWho("false"))
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Challenge Information:
Build a Boolean Check Function - Build a Boolean Check Function
https://www.freecodecamp.org/learn/full-stack-developer/lab-boolean-check/build-a-boolean-check-function