queryselectorall id starts with code example Example: javascript querySelectorAll id ends with console.log(document.querySelectorAll("[id$=foo]"));