1let a = 1;
2let b = -1;
3
4if (a > 0 & b > 0){
5 console.log("and");
6} else if (a > 0 || b > 0){
7 console.log("or");
8}
1const a = 3;
2const b = -2;
3
4console.log(a > 0 || b > 0);
5// expected output: true
1//&& returns true if both values are true
2//or returns the second argument if the first is true
3var a = true
4var b = ""
5var c = 1
6
7true && "" //""
8"" && 1 //""
9false && 5 //false