access a form and its element by name
let el = document.forms[‘formName’][‘elName’]
focus a DOM element
elVariable.focus();
set a style on a DOM element
elVariable.style. = “new value”;
add or remove classes from a DOM element
elVariable.classList.add(‘styleName’);
elVariable.classList.remove(‘styleName’);
(there is also a .toggle() )
NodeList forEach()?
Doesn’t have forEach().
Use Array.from() to convert to an array, or use for …of loop