목차

JavaScript Assignment

  • description : JavaScript Assignment
  • author : 오션
  • email : shlim@repia.com
  • lastupdate : 2021-04-23


The Source of this article

JavaScript Assignment

JavaScript Assignment Operators

할당 연산자(Assignment operators)는 JavaScript 변수에 값을 할당합니다.

Operator Example Same As
= x = y x = y
+= x += y x = x + y
-= x -= y x = x - y
*= x *= y x = x * y
/= x /= y x = x / y
%= x %= y x = x % y
<<= x <<= y x = x << y
>>= x >>=y x = x >> y
>>>= x >>>=y x = x >>> y
&= x &= y x = x & y
^= x ^= y x = x ^ y
|= x |= y x = x | y
**= x ** = y x = x ** y