Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript and operator

//AND Operator expressed as &&

const x = 7;
const y = 4;

(x == 7 && y == 5); // false
(x == 3 && y == 4); // false
(x == 7 && y == 4); // true

if (condition == value && condition == otherValue) {
  return something;
}
 
PREVIOUS NEXT
Tagged: #javascript #operator
ADD COMMENT
Topic
Name
1+5 =