What’s the difference between & and && in JavaScript?

& is bitwise AND This operator expects two numbers and retuns a number. In case they are not numbers, they are cast to numbers. How does it work? Wikipedia has an answer: https://en.wikipedia.org/wiki/Bitwise_operation#AND Note: In Javascript, the usage of this operator is discouraged, since there’s no integer data type, just floating point. Thus floats are … Read more