Report question

Question: How do you find out if an HTML element has a certain class with plain Javascript?