Operators
Left shift assignment (<<=)
Shifts the current value left and stores the result. For Number, the left operand is a signed 32-bit integer and shift counts use the low five bits.
Formal Syntax & Structure
javascript syntaxjavascript
target <<= valueParameters & Attributes
| Name | Type | Description |
|---|---|---|
| target | assignment target | Writable binding or property; evaluated once. |
| value | expression | Right operand used by the underlying operation. |
Return Value
operation result
The value written to the target.
Working Example
Example Snippetjavascript
let n = 3;console.log(n <<= 2);