selection은 「.selectAll()의 대상이 되는 DOM」과 「.data()로 전달한 데이터」를 비교하면 이해하기 쉽습니다.
.selectAll()
.data()
.attr
.exit()
.remove()
.enter()