
๊ธฐ๋ณธ ์ฐ์ฐ์

๋จ์ถ๋ ์ฐ์ฐ์

๊ด๊ณ ์ฐ์ฐ์

๋
ผ๋ฆฌ ์ฐ์ฐ์

์ด ๋ฐ์๋ ๋ค๋ฅธ ์ฐ์ฐ์๋ ์กด์ฌํ๋ค.
// ์ฆ๊ฐ์ฐ์ฐ
let a =1
a++ // a=a+1๊ณผ๊ฐ๋ค
console.log(a)// 2
//๊ฐ์์ฐ์ฐ
let b =2
b-- // b=b-1๊ณผ ๊ฐ๋ค
console.log(b) // 1
//๋จ์ถ๋ ์ฐ์ฐ์
let c =1
c+=3 // c=c+3์ ์ค์ฌ์ ํํํ ๊ฒ์ด๋ค
console.log(c)//4
let d = 3
d-=2 // d=d-2๋ฅผ ์ค์ฌ์ ํํํ ๊ฒ์ด๋ค
console.log(d)//1
// NOT ์ฐ์ฐ์ : ์ด๋ค๊ฐ์ ๋ฐ๋๋๋ ๊ฐ์ ๋ฐํ true ๋ฉด false๋ฅผ, false๋ฉด true๋ฅผ ๋ฐํ
let f = true
console.log(!f) // false
// ๊ฐ๋ค๋ผ๋ ํํ์ ==
let x = 2
let y =2
console.log(x == y)// true
//๋ค๋ฅด๋ค๋ผ๋ ํํ์ !=
console.log(x != y)//false