An example of using JavaScript and the DOM to apply background-color styles to table cells. And because we aren’t applying classes to any of the table rows to achieve the effect, we an use classes for more specific uses, such as indicating selected rows in the table (rows marked #3, #8, and #9).