Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js if and operator

const a = 3;
const b = -2;

console.log(a > 0 && b > 0);
// expected output: false
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #operator
ADD COMMENT
Topic
Name
3+9 =