효율적으로 문자열과 배열을 활용하는 법을 알아봅시다! length() length(): 이 메서드는 문자열의 길이를 반환합니다. const str = "Hello, world!"; console.log(str.length); // 13 배열의 경우엔 배열의 수를 나타냅니다. const arr = [1, 2, 3, 4, 5]; console.log(arr.length); // 5 유사 배열 객체의 경우, length 속성은 해당 객체가 가지고 있는 요소의 개수를 나타냅니다. const paragraphs = document.getElementsByTagName("p"); console.log(paragraphs.length); // the number of elements in the document ch..