map() 메소드 형태: arr.map(function(currentValue, index, array) {실행할 함수 내용; return 새로운 배열에 넣어 줄 요소 }) 배열 내의 모든 요소 하나 하나에 순서대로 콜백함수를 실행한 결과를 모아서 새로운 배열을 반환 callback 함수는 1) 처리할 요소, 2) 처리할 요소의 인덱스, 3) map을 호출한 배열 의 세 가지 파라미터를 가짐 처리할 요소 current Value 는 required 처리할 요소의 인덱스 I 는 optional map을 호출한 배열 array 는 optional map() 메소드는 호출한 배열의 값을 변형하지 않지만 콜백함수에 의해서 변형될 수는 있음 map() 시작한 이후 배열에 추가되는 요소들은 콜백함수의 적용을 받지 ..

01. querySelector() method querySelector() 메소드를 활용하면 특정 CSS Selector를 연결시켜 각 element 의 속성들을 동적으로 변경할 수 있다. 각 Selector의 리턴 예시 tag > document.querySelector("example"); class > document.querySelector(".example"); id > document.querySelector("#example"); 특정 class 를 포함하고 있는 첫 번째 tag > document.querySelector("p.example"); parent tag 로 감싸고 있는 첫 번째 tag > document.querySelector("div > p"); target 속성을 가지고..