The second set of DOM getters we'll talk about are querySelector and querySelectorAll. Create a getelements.js in your lab folder and link it in your index.html. Open up queryselector.js in VScode and ...
It will throw an error, because none of the elements in those queries exist. If you don‘t know if the elements exist or not, you will require to wrap all the code in conditions or use optional ...