dom manipulation javascript trigger code example Example: javascript es6 dom manipulation const myElement = document.querySelector('#foo > div.bar')