Answers for "How does logical operators or || works in javascript?"

5

js logical operators

Javascript Logical Operators
&& Logical and
|| Logical or
! Logical not
Posted by: Guest on January-04-2021
0

How does logical operators && works in javascript?

const num = 6;
if (num <= 7 && num <= 8) {
    console.log('true')
} else {
    console.log('false')
}
//Expected output:true
Posted by: Guest on September-16-2021
0

How does logical operators or || works in javascript?

const num = 6;
if (num <= 4 || num <= 8) {
    console.log('true')
} else {
    console.log('false')
}
//Expected output:true
Posted by: Guest on September-16-2021

Code answers related to "How does logical operators or || works in javascript?"

Code answers related to "Javascript"

Browse Popular Code Answers by Language