[JavaScript] textContent / innerHTML
both are for changing content but there are differences
Common grounds
- textContent / innerHTML both works to change content as below.
Differences
- textContent : it only change the content
- innerHTML : it can change the content and appearance as well.
Β