TypeScript: Operators
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
let a: boolean = true;
let b: boolean = false;
if(a === true){
console.log("a is true");
}
if(a){
console.log("a is true");
}
if(!b){
console.log("b is false")
}let a: boolean = true;
let b: boolean = false;
if(a && !b){
console.log("yep, a is true en b is false")
}let a: boolean = true;
let b: boolean = false;
if(a || !b){
console.log("a is true, we kijken niet meer naar b");
}let a: boolean = true;
let b: boolean = false;
if(b && a){
console.log("a is true, we kijken niet meer naar b");
}