In JavaScript, what is the difference between doing:
if (a !b)
{
// something here
}
and
if (a != b)
{
// something here
}
I know that '!' is 'logical not' and '!=' is 'not equal to', but I am not sure on the difference between the two. I have seen both examples used on SoloLearn projects though.
Neither of the above give any errors or warnings in my web browser (chrome). I'm not sure how to use chrome's debug console yet.
I don't mean "difference between !== and !===" btw.