ì¼ìª½ ìíí¸ í ë¹ ì°ì°ì (<<=)
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since 2015ë 7ì.
ì¼ìª½ ìíí¸ í ë¹ (<<=) ì°ì°ìë ì§ì ë ë¹í¸ ì ë§í¼ ì¼ìª½ì¼ë¡ ë¹í¸ë¥¼ ì´ëìí¤ê³ ê·¸ 결과를 ë³ìì ë°ìí©ëë¤.
ìëí´ ë³´ê¸°
let a = 5; // 00000000000000000000000000000101
a <<= 2; // 00000000000000000000000000010100
console.log(a);
// Expected output: 20
구문
js
x <<= y // x = x << y
ìì
>ì¼ìª½ ìíí¸ í ë¹í기
js
let a = 5;
// 00000000000000000000000000000101
a <<= 2; // 20
// 00000000000000000000000000010100
ëª ì¸
| Specification |
|---|
| ECMAScript® 2027 Language Specification> # sec-assignment-operators> |