JavaScript supports several bitwise operators, including AND (&), OR (|), XOR (^), NOT (~), and shift operators (<<, >>, >>>).
Example:
const a = 5; // 0101
const b = 3; // 0011
console.log(a & b); // 1 (0101 & 0011 = 0001)Tags: basic, JavaScript, operators
URL: https://www.tiktok.com/@jsmentoring/video/7457690353714433312