diff --git a/script.js b/script.js index 5762129..6752317 100644 --- a/script.js +++ b/script.js @@ -15,6 +15,18 @@ console.log("Hello! If you see this, the script is working."); - [ ] Remove the div with a class of footer. */ + // Try rewriting this without using querySelector -const header = document.querySelector("#container"); -console.log("header", header); +const header = document.getElementById("container"); +console.log("# 1 header", header); + + +// Using querySelector +const headerQuery = document.querySelector("#container"); +console.log("# 2 headerQuery", headerQuery); +// select all using class name +const secondClassItems = document.getElementsByClassName("second"); +console.log("# 3 secondClassItems", secondClassItems); +//select all using with third class/inside ol tag +const thirdClassItems = document.querySelector("ol .third"); +console.log("# 4 thirdClassItems", thirdClassItems);