Answers for "and javascript"

1

or statment javscript

if (x === 5 || x === 8)
  console.log("x is eaqual to 5 OR 8")
Posted by: Guest on July-21-2020
3

less than or equal to javascript

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

not operator js

let a = true;

let b = !a;

console.log(b); //output: false
Posted by: Guest on July-11-2020
2

less than equal to in javascript

| <= | less than or equal to |	x <= 8 | true |
Posted by: Guest on May-29-2020
1

|| in js

const a = 3;
const b = -2;

console.log(a > 0 || b > 0);
// expected output: true
Posted by: Guest on October-19-2020
0

and javascript

let a = 1;
let b = -1;

if (a > 0 & b > 0){
	console.log("and");
} else if (a > 0 || b > 0){
	console.log("or");
}
Posted by: Guest on March-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language