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월.
증가(++) 연산자 는 피연산자를 증가(1을 더함)시키고 연산자의 위치에 따라 증가하기 전이나 후의 값을 반환합니다.
만약 피연산자 뒤에 연산자를 붙여서 사용한다면 (예를 들어 x++) 증가 연산자는 수를 증가시키고 증가하기 전 값을 반환합니다.
만약 피연산자 앞에 연산자를 붙여서 사용한다면(예를 들어 ++x) 증가 연산자는 수를 증가시키고 증가 후 값을 반환합니다.
증가 연산자는 참조인 피연산자 변수 및 객체 속성, 다시말해 유효한 할당 대상에만 적용할 수 있습니다. ++x 자체는 참조가 아닌 값으로 평가되기 때문에 여러 증가 연산자를 연속적으로 사용할 수 없습니다.
| ECMAScript® 2027 Language Specification # sec-postfix-increment-operator |
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.