What is wrong ? help me


#1

if( 5 > 10)
{
console.log("company");
}
else
{
console.log( 5 > 8);
}


#2

what's wrong with it?
if( 5 > 10) is evaluating to a false
so your else block gets executed
console.log( 5 > 8); prints out false
because 5 >8 results in a boolean output.