Answers for "javascript and or operator"

3

what are the logical operators in javascript

&&
||
!
Posted by: Guest on November-17-2021
3

less than or equal to javascript

if(a <= 5){
   yourFunction();
}
Posted by: Guest on February-22-2020
0

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
Posted by: Guest on September-26-2020
0

logical operators in javascript

n1 = !true               // !t returns false (the opposite of true)
n2 = !false              // !f returns true (the opposite of false)
n3 = !''                 // !f returns true (in JavaScript, an empty string is falsey, thus the opposite of a falsey value here is truthy.)
n4 = !'Cat'              // !t returns false (non empty string is truthy, thus opposite is falsy)
Posted by: Guest on August-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language