View Swapping Flashcards
1
Q
What is the event.target?
A
The target property returns the specific element where the event occurred.
2
Q
What is the affect of setting an element to display: none?
A
Takes the element out of the flow entirely and is hidden.
3
Q
What does the element.matches() method take as an argument and what does it return?
A
A CSS selector and returns a boolean.
4
Q
How can you retrieve the value of an element’s attribute?
A
element.getAttribute()
5
Q
At what steps of the solution would it be helpful to log things to the console?
A
Every step