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