문자 객체의 메서드 .trim() : 문자열 양 끝 공백 제거 후 반환. 스페이스, 탭, 줄바꿈 등 공백 제거 console.log(`.trim() ----------------- `); let hello = ` 안녕 하세요? `; console.log(hello); hello = hello.trim(); console.log(hello); .indexOf(검색대상문자열) : 문자열 찾음. 인덱스 번호로 반환. -1은 찾을 수 없는 경우 반환. 대소문자 구분 let text1 = `재미있는 자바스크립트` console.log(text1); let count = text1.indexOf(`재미있는`); // = 0 // 인덱스 번호의 시작은 0부터. 첫번째 존재 count = text1.indexOf(`자..