From Bitwise AND (&) - JavaScript | MDN:
The bitwise AND operator (&) returns a 1 in each bit position for which the corresponding bits of both operands are 1s.
Furthermore,
The operands are converted to 32-bit integers and expressed by a series of bits (zeroes and ones). Numbers with more than 32 bits get their most significant bits discarded. For example, the following integer with more than 32 bits will be converted to a 32 bit integer.
Since the result is an integer, javascript evaluates the truthiness of the value instead. (See Truthy - MDN Web Docs Glossary: Definitions of Web-related terms | MDN)
In JavaScript, a truthy value is a value that is considered true when encountered in a Boolean context. All values are truthy unless they are defined as falsy (i.e., except for false, 0, -0, 0n, "", null, undefined, and NaN).
JavaScript uses type coercion in Boolean contexts.
Therefore, if (buffer[0] & 1)
is "if the rightmost bit of buffer[0]
is ON" in English OR
C#:
if((blahblah & 1) != 0)