js logical operators
Javascript Logical Operators
&& Logical and
|| Logical or
! Logical not
js logical operators
Javascript Logical Operators
&& Logical and
|| Logical or
! Logical not
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
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us