Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

5.3.1.1. Logical AND¶

/*The operator takes two operands, and the resulting expression is 
true if both operands are true individually. If either operand is 
false, the overall expression is false.*/

console.log(7 > 5 && 5 > 3);
console.log(7 > 5 && 2 > 3);
console.log(2 > 3 && 'dog' === 'cat');

//true
//false
//false
Comment

5.3.1.2. Logical OR¶

/*JavaScript's logical OR operator, ||, also creates compound boolean
expressions. This operator takes two operands, and the resulting 
expression is true if either of the operands are true individually. 
If both operands are false, the overall expression is false.*/

console.log(7 > 5 || 5 > 3);
console.log(7 > 5 || 2 > 3);
console.log(2 > 3 || 'dog' === 'cat');

//true
//true
//false
Comment

PREVIOUS NEXT
Code Example
Javascript :: react userefrence example 
Javascript :: The syntax of ScrollBy() methods 
Javascript :: how to get button text in javascript 
Javascript :: bjsmasth upset 
Javascript :: package.json view html report 
Javascript :: Dynamically bind layouts android with json array 
Javascript :: npm run after error 
Javascript :: 1update normalize-url 
Javascript :: elasticsearch performance 
Javascript :: synaptic js 
Javascript :: append dynamica html in jsx react 
Javascript :: use redis in adonis 
Javascript :: get search value from reacr route2 
Javascript :: F:JavascriptOOP 
Javascript :: how to send sendgrid email with dynamic template nodejs 
Javascript :: how to get selected option attribute value in jquery 
Javascript :: exit ios inspector in react native 
Javascript :: javascript array group duplicates 
Javascript :: how does we know which field is selected by user in nestjs query 
Javascript :: Destructing variable assignment 
Javascript :: javascript make the web browser scroll to the top 
Javascript :: Upload literal unsupported graphql 
Javascript :: routing in react jps 
Javascript :: javascript once per day 
Javascript :: howler.js play file 
Javascript :: type.js 
Javascript :: javascript state array and object cheat sheet 
Javascript :: factorial recursion javascript 
Javascript :: react native elements datepicker 
Javascript :: In JavaScript, all numbers are stored in the format float64 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =