Looking through the mdn \"querySelector\" pops up under both sections and yet they both seem to achieve the same ends. Is either one ideal for different situations? ...or ar
The only difference is where the query is rooted. element.querySelector only searches the children of element. Because the scope is narrower it's more efficient.