표기법
the quick brown fox jumps over the lazy dog을 각 표기법에 맞춰 작성해보자!
- dash-case(kebab-case): the-quick-brown-fox-jumps-over-the-lazy-dog
- snake_case: the_quick_brown_fox_jumps_over_the_lazy_dog
- camelCase: theQuickBrownFoxJumpsOverTheLazyDog
- ParcelCase: TheQuickBrownFoxJumpsOverTheLazyDog
Zero-based Numbering
특수한 경우를 제외하고 0부터 숫자를 시작한다. (배열의 첫 번째 요소는 0번 인덱스)
let fruits = ['apple', 'banana', 'orange'];
console.log(fruits[0]); // apple
console.log(fruits[1]); // banana
console.log(fruits[2]); // orange
데이터 종류(자료형)
- String: 문자열
- Number: 숫자
- Boolean: true(참), false(거짓)
- Undefined: 미할당(값이 할당되지 않은 상태)