Here is my code:
if (5 > 2 || 6 > 2 || 7 > 2) {
console.log("Two is small");
} else {
console.log("Two is big");
}
Is there a way to shorten it? I am looking for something like this (the code below doesn't work):
if (5, 6, 7 > 2) {
console.log("Two is small");
else {
console.log("Two is big");
}