동캄의 코딩도장

JS [operators] 본문

front/HTML&CSS&JS

JS [operators]

동 캄 2022. 1. 23. 22:45

Immutable type : primitive type, frozen objects
Mutable type: all objects by default are mutable in JS

Operator

1. String concatenation

2. Numeric operators

3. Increment and decrement operators

4. Assignment operators

5. Comparison operators

6. Logical operators
-연산이 간단한 operation이 앞으로 오도록 배치

7. Equlity
== loose equality with type conversion (타입 상관 x)

=== strict equllity no type conversion (같은 타입인지 검사)

8. If operators

9. Ternary operator
   사용법: condition ? value1 : value2
   ex) console.log(name==='ellie' ? 'yes': 'no');

10. switch statement

11. Loops
- while
- do while
- for
- nested loops

'front > HTML&CSS&JS' 카테고리의 다른 글

JS [Class]  (0) 2022.01.24
JS [function]  (0) 2022.01.23
JS [variable]  (0) 2022.01.23
html [emmet]  (0) 2022.01.22
css [flex box 모델]  (0) 2022.01.22