Skip to content

Instantly share code, notes, and snippets.

@QuatoHub
Created September 8, 2021 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QuatoHub/0a44c0738f8bf6efb95bdfb95258a51f to your computer and use it in GitHub Desktop.
Save QuatoHub/0a44c0738f8bf6efb95bdfb95258a51f to your computer and use it in GitHub Desktop.
// ++ 연산자는 피연산자의 값을 변경하는 암묵적 할당이 이뤄진다.
x++; // x = x + 1;
console.log(x); // 2
// -- 연산자는 피연산자의 값을 변경하는 암묵적 할당이 이뤄진다.
x--; // x = x - 1;
console.log(x); // 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment