Last active
September 11, 2021 09:06
-
-
Save QuatoHub/4318395b6053b8752e267199319a03a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let x = 5, | |
result; | |
// 선할당 후증가(postfix increment operatior) | |
result = x++; | |
console.log(result, x); // 5 6 | |
// 선증가 후할당(prefix increment operatior) | |
result = ++x; | |
console.log(result, x); // 7 7 | |
// 선할당 후감소(postfix decrement operatior) | |
result = x--; | |
console.log(result, x); // 7 6 | |
// 선감소 후할당(prefix decrement operatior) | |
result = --x; | |
console.log(result, x); // 5 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment