Build a Logic Checker App - Step 2

Tell us what’s happening:

I need to use boolean operators to check if a value is true or false. I need help.

Your code so far


// User Editable Region

function truthyOrFalsy(value) {
  return value? true : false;
}

console.log(truthyOrFalsy(true));     // true
console.log(truthyOrFalsy(0));        // falsy

// User Editable Region

Your browser information:

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

Challenge Information:

Build a Logic Checker App - Step 2

Welcome to the forum @Italo

You are not asked to write a new function.

You should log Boolean(truthyOrFalsy) to the console.

Please reset the step to restore the seed code.

Log the Boolean statement to the console.

Happy coding