or statment javscript
if (x === 5 || x === 8)
console.log("x is eaqual to 5 OR 8")
or statment javscript
if (x === 5 || x === 8)
console.log("x is eaqual to 5 OR 8")
javascript if and statement
let a = 1;
let b = 2;
if(a == 1 && b ==2){
// Code here
}
javascript if statement
if (5 < 10) {
console.log("5 is less than 10");
} else {
console.log("5 is now bigger than 10")
}
javascript if not
var isDay = false;
if (!isDay) { //Will execute if isDay is false
console.log("It's night");
}
javascript if or
let A = 1;
let B = 0;
if (A == 1 || B == 1){
// some code here
}
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');
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us