Code from the SpaceYaTech Mentorship sessions Session 3 of the JS sessions We covered the following topics today:
- Revisiting objects
- Revisiting functions
- We looked at the document object
document
- We looked at how to select items on the document using the different methods that are available to us on the document object:
document.getElementById("")
document.getElementBtClassName("")
document.getElementByTagname("")
document.querySelector("")
document.querySelectorAll("")
We also looked at how to addEventListeners to our elements
document.querySelector("").addEventListener("click", function(){
})