Im trying to figure out how to get the case to ask whether userName is truthy or falsy. and empty string is suppose to bring back false but if i just “userName === userName” it always comes back true because its not comparing the value inside of inside so im unable to get it to check the value of whether userName is truthy or falsy in terms of its value.
switch (true) {
case userName === true && userQuestion === true :
console.log(`${userName} wants too know...${userQuestion}`);
break;
case 1 === 2 && 1 === 1 :
console.log(`The User has wants to know...${userQuestion}`);
break;
case true && false :
console.log(`${userName} you need to ask a question!`);
break;
deafult:
console.log('You have not asked a question.');
break;
}