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