πΈ07μ₯. μ°μ°μ
**μ°μ°μ** : νλ μ΄μμ ννμμ λμμΌλ‘ μ°μ , ν λΉ, λΉκ΅, λ
Όλ¦¬, νμ
, μ§μ μ°μ° λ±μ μνν΄ νλμ κ°μ λ§λλ κ²
**νΌμ°μ°μ** : μ°μ°μ λμ. κ°μΌλ‘ νκ°λ μ μλ ννμβ
7.1 μλ°μ€ν¬λ¦½νΈκ° μ 곡νλ λ€μν μ°μ°μ
μ°μ μ°μ°μ(arithmetic operator)
νΌμ°μ°μλ₯Ό λμμΌλ‘ μνμ κ³μ°μ μνν΄ μλ‘μ΄ μ«μ κ°μ λ§λ λ€.
λΆκ°λ₯ν κ²½μ° **NaN**μ λ°ννλ€.var x = 5, result; // μ ν λΉ νμ¦κ°(postfix increment operator) result = x++; console.log(result, x); // 5 6 // μ μ¦κ° νν λΉ(prefix increment operator) result = ++x; console.log(result, x); // 7 7 // μ ν λΉ νκ°μ(postfix decrement operator) result = x--; console.log(result, x); // 7 6 // μ κ°μ νν λΉ (prefix decrement operator) result = --x; console.log(result, x); // 5 5
ν λΉ μ°μ°μ(assignment operator)
λΉκ΅ μ°μ°μ(comparison operator)
μΌν쑰건 μ°μ°μ(ternary operator)
λ
Όλ¦¬ μ°μ°μ(logical operator)
μΌν μ°μ°μ(,)
κ·Έλ£Ή μ°μ°μ
typeof μ°μ°μ
μ§μ μ°μ°μ(exponent operator)
κ·Έ μΈ μ°μ°μ
μ°μ°μ
κ°μ
λΆμν¨κ³Όκ° μλ μ°μ°μ
β
7.2 μ묡μ νμ
λ³ν(implicit coercion)(=νμ
κ°μ λ³ν)
Last updated