Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- Prototype
- 정규표현식
- close together
- flex-shrink
- express-handlebars
- 디자인패턴
- JS
- flex-basis
- improve-iq-by-up-to-10%!
- Node.js
- module wrapper function
- Express
- select by attribute
- img 확대
- Engoo
- css
- css 오버레이
- flexbox
- regExp
- shit-christmas
- node
- Object.create
- 무료 백엔드 배포
- es6
- css variables
- css grid
- Sass
- just-one-small-sip
- flex-grow
- ajax
Archives
- Today
- Total
조건문 본문
조건을 적을 때 ==를 이용하면 데이터 형을 무시하고 비교하려 한다.
===를 사용하면 데이터 형을 무시하지 않고 비교한다.
Conditional(ternary) Operator (삼항 조건 연산자)
조건에 따라 결정된 값을 변수에 할당하고자 할 때 주로 이용된다.
const x = 10;
const color = x > 10 ? 'red' : 'blue';
console.log(color);
switch
조건문과 case문이 일치하면 해당 case문의 명령을 수행
'2021 프론트 엔드 로드맵 따라가기 > JS' 카테고리의 다른 글
Construct object (0) | 2021.05.28 |
---|---|
function (0) | 2021.05.28 |
반복문 (0) | 2021.05.27 |
JSON (0) | 2021.05.27 |
Object literal (0) | 2021.05.27 |
Comments