Finally, I confirmed that in js, even something like "5"=5 should give a true, so even if there is some weird typing going on, that shouldn't affect the outcome. The JavaScript not equal or inequality operator () checks whether two values are not equal and returns a boolean value. I have also checked to make sure both for loops are running. Here are some more examples of using the strict inequality. The operator returns a boolean result: true if the values are not equal false if the values are equal The strict inequality () operator is the negation of the strict equality () operator.
#Javascript does not equal multiple values code
For example with the code below I get output like: 21=21false,Īs you can see I've already checked to make sure schedule_array exists and has valid numbers. We used the strict inequality () operator to check if two strings are not equal. I have no idea why, but the following code's = fails even when I am comparing the same integer to itself. When multiple is specified, most browsers will show a scrolling list box instead of a single line dropdown.