In this project, I show how to work with DOM (Document Object Model) using Javascript. We're working with:
- Access DOM element using getElementById and querySelector
- change DOM content using innerHTML and textContent
- Show/hide elements using conditional ternary operator
- setAttribute method
- forEach Array method
- template strings
- classList property
- HTML data-* attribute
- dataset property
Manipulate DOM with javascript
Open index.html
in your favourite browser!