How to get, set, and remove attributes and properties with vanilla JavaScript

useful article documenting the differences between attributes and properties