Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

or operator js

//OR Operator 

const x = 7;
const y = 4;

(x == 5 || y == 5); // false 
(x == 7 || y == 0); // true
(x == 0 || y == 4); // true
(x == 7 || y == 4); // true
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #operator #js
ADD COMMENT
Topic
Name
4+3 =