document.createElement('div')
<div></div>
const divTag = document.createElement('div')
변수에 담을수도 있다
document.body.append(divTag)
const oneTweet = document.querySelector('.tweet')
const tweets = document.querySelectorAll('.tweet')
const container = document.querySelector('#container')
const tweetDiv = document.createElement('div')
container.append(tweetDiv)
const getOneTweet = document.getElementById('container')
const queryOneTweet = document.querySelector('#container')
console.log(getOneTweet === queryOneTweet) // true
console.log(divTag) // <div></div>
divTag.textContent = 'hello'
console.log(divTag) // <div>hello</div>
divTag.classList.add('tweet')
console.log(divTag) // <div class="tweet">hello</div>
divTag.remove()
document.querySelector('#container').innerHTML = '';