I have a very basic statement that isnt outputting the correct value but I cant get my head around why.
My variable has the following value:
var bedroomNums = "0_1"
Yet this output displays as true
in Chrome console:
bedroomNums != ("0_0" || "0_1" || "0_2")
I am trying to create an IF
statement to say:
if bedroomNums doesnt equal X or Y or Z then the statement is true
I have tried:
bedroomNums != "0_0" || bedroomNums != "0_1" || bedroomNums != "0_2"
but this also displays true
Where am I going wrong