// 먼저 DATA에 있는 정보를 가져올 때부터 어려움을 겪었다.
function printComments() {
DATA.forEach(printComment);
} // 객체로 작성된 DATA의 정보를 li가 만들어질 때 뿌려준다.
function printComment(comment) {
const commentElement = makeNewTweet(comment);
tweetList.append(commentElement); //li를 tweetList의 자식으로 삽입한다.
}
tweet 생성과정
새로운 정보를 생성하면 -> 저장될 DATA에 넣어주고 -> 목록을 초기화 -> 원래있던 목록을 생성 -> 추가될 목록 생성