- Select an Element by ID 6:21
- Select by ID 2 objectives
- Select Elements by Tag Name 7:40
- Select by Tag Name 1 objective
- Select Elements by Class Name 3:48
- Selection Review 5 questions
- Use CSS Queries to Select Page Elements 6:10
- Getting a Handle on the DOM Review 5 questions
- Return Elements Using CSS Selectors 3 objectives
Well done!
You have completed Getting a Handle on the DOM Review!
Quiz Question 1 of 5
Evaluate the following two lines of code:
const btnDeleteA = document.getElementById('btn-delete');
const btnDeleteB = document.querySelector('#btn-delete');
Are the two lines of code functionally identical?
Choose the correct answer below: