var str1 = 'Code';
var str2 = "States";
var str3 = '1';
console.log(str1 + str2); // 'CodeStates'
console.log(str3 + 7); // '17'
- str1.concat(str2, str3, ....)의 형태로도 사용 가능
length PROPERTY
str.indexOf (searchValue)
'Blue Whale'.indexOf('Blue'); // 0
'Blue Whale'.indexOf('blue'); // -1
'Blue Whale'.indexOf('Whale'); // 5
'Blue Whale Whale'.indexOf('Blue'); // 5
- see more: str.includes(searchValue)
Internet Explorer와 같은 구형 브라우저에서는 작동하지 않으므로 주의
**str.split(seperator)**
- arguments : 분리 기준이 될 문자열
- return value : 분리된 문자열이 포함된 배열
```javascript
var str = 'Hello from the other side';
console.log(str.split(' '));
// ['Hello', 'from', 'the', 'other', 'side]
str.substring(start, end)
var str = 'abcdefghij';
console.log(str.substring(0, 3)); // abc
console.log(str.substring(3, 0)); // abc
console.log(str.substring(1, 4)); // bcd
console.log(str.substring(-1, 4)); // abcd
// 음수는 0으로 취급
console.log(str.substring(0, 20)); // abcdefghij
// index 범위를 초과하면 마지막까지 출력
str.toLowerCase() / str.toUpperCase()
console.log('ALPHABET'.toLowerCase());
// 'alphabet'
console.log('alphabet'.toUpperCase());
// 'ALPHABET'