• 회원가입
  • 로그인
  • 구글아이디로 로그인

[Operator] JS - 비트연산자 (Bitwise Operator)

비트연산자 (Bitwise Operators)
연산자 Name Description
& AND 대응 비트가 모두 1이면 1로 설정
| OR 대응 비트가 하나라도 1이면 1로 설정
^ XOR 대응 비트가 다르면 1로 설정
~ NOT 각각의 비트를 0은 1로, 1은 0으로 뒤집어 설정
<< Zero fill
left shift
오른쪽 끝에 0 밀어넣어 왼쪽으로 이동 후,
왼쪽 끝 비트 제거.
>> Signed
right shift
왼쪽 끝 비트 복사해 왼쪽에 밀어넣어 오른쪽으로 이동 후, 오른쪽 끝 비트 제거.
>>> Zero fill
right shift
왼쪽 끝에 0 밀어넣어 오른쪽으로 이동 후
오른쪽 끝 비트 제거.


방문 감사합니다. (즐겨찾기 등록: Ctrl + D)

분류 제목
Operator JS - 연산자 (Operator)
Operator JS - 산술연산자 (Arithmetic Operator)
Operator JS - 할당연산자 (Assignment Operator)
Operator JS - 문자열연산자 (= String Operator = 연결연산자 Concatenation Operato…
Operator JS - 비교연산자 (Comparison Operator)
Operator JS - 논리연산자 (Logical Operator)
Operator JS - 비트연산자 (Bitwise Operator)
Operator JS - typeof 연산자 - 데이터타입 반환/확인/체크 (= typeof연산자 = 타입어브연산자/타입어브…
Operator JS - delete 연산자 (delete Operator = 삭제연산자)
Operator JS - in 연산자 (in Operator = 포함연산자)
Operator JS - instanceof 연산자 (instanceof Operator = 인스턴스연산자)
Operator JS - void 연산자 (void Operator) + 클릭 배경색 변경
목록
찾아주셔서 감사합니다. Since 2012