Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
AND 비트 연산자(&)는 두 개의 피연산자의 각 자리마다 대응하는 비트가 모두 1일 경우 1을 반환합니다.
피연산자는 32비트 정수로 변환되며 일련의 비트(0과 1)로 표현됩니다. 32비트 이상인 숫자는 최상위 비트가 삭제됩니다. 예를 들어 32비트 이상인 다음 정수는 32비트 정수로 변환됩니다.
첫 번째 피연산자의 각 비트는 두 번째 피연산자의 해당 비트(첫 번째 비트 와 첫 번째 비트, 두 번째 비트 와 두 번째 비트 등등)와 쌍을 이룹니다.
연산자가 각 비트의 쌍에 적용되며, 결과는 완성된 비트 연산된 값입니다.
AND 연산에 대한 진리표는 다음과 같습니다:
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
어떤 수 x에 0을 AND 비트 연산한 결과는 0가 됩니다.
| ECMAScript® 2027 Language Specification # prod-BitwiseANDExpression |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 2월 11일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.