I'm having trouble with this logic. I'm trying to find a way where a single variable will have multiple values without using array. Here is my code
var num = {
from: 500,
to: 700
};
if (num == 500 && num == 600 && num==700) {
console.log("working");
}
else {
console.log("not working")
}