JavaScript ES6 DOM Manipulasi
myElement.matches('div.bar') === true
Vivacious Vulture
myElement.matches('div.bar') === true
const myChildElemet = myElement.querySelector('input[type="submit"]')
// Instead of
// document.querySelector('#foo > div.bar input[type="submit"]')
const myElement = document.querySelector('#foo > div.bar')
const myElements = document.querySelectorAll('.bar')