Basic Algorithm Scripting - Boo who

Can someone help me with what is wrong in the given code?

Your code so far

function booWho(bool) {
 
 let boolean = typeof bool;
  console.log(boolean);
  if(bool === boolean){
    return true
  }
  return false;
}

booWho(1);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0

Challenge: Basic Algorithm Scripting - Boo who

Link to the challenge:

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