Answers for "javascript if or"

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
1

javascript if and statement

let a = 1;
let b = 2;
if(a == 1 && b ==2){
	// Code here 
}
Posted by: Guest on October-28-2020
8

javascript if statement

if (5 < 10) {
	console.log("5 is less than 10");
} else {
	console.log("5 is now bigger than 10")
}
Posted by: Guest on April-26-2020
3

javascript if not

var isDay = false;
if (!isDay) { //Will execute if isDay is false
  console.log("It's night");
}
Posted by: Guest on May-20-2020
4

javascript if or

let A = 1;
let B = 0;
if (A == 1 || B == 1){
  	// some code here
}
Posted by: Guest on May-22-2020
1

javascript if

const number = (Math.random() - 2.5) * 5;
if (number < 0) {
	console.log('Number is negative');
}
if (number = 0) {
	console.log('Number is zero');
}
if (number > 0) {
	console.log('Number is positive');
}
Posted by: Guest on October-01-2020

Code answers related to "javascript if or"

Code answers related to "Javascript"

Browse Popular Code Answers by Language