Check if a value is classified as a boolean primitive. Return true or false

Tell us what’s happening:

Your code so far

function booWho(bool) {
  // What is the new fad diet for ghost developers? The Boolean.
  var x = (false);
if (var x !== bool){
  return true;
  // this code is executed

  return bool;


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36.

Link to the challenge:

1 Like

Your function should return either true or false. The only two values which should return true are true and false. Any other value should return false.