Assingement
Link: https://javascript.info/task/find-elements/table.html
How to find?…
- The table with id="age-table".
ANSWER - ageTable = document.getElementById("age-table")
- All label elements inside that table (there should be 3 of them).
ANSWER - ageTable.querySelectorAll("label")
- The first td in that table (with the word “Age”).
ANSWER - ageTable.querySelector("td")
- The form with name="search".
ANSWER - form1 = document.querySelector("form")
- The first input in that form.
form1.querySelectorAll("input")
ANSWER - form1[0]
- The last input in that form.
ANSWER - form1[1]