JavaScript DOM: Questions for TechPrep #7
ghost
started this conversation in
Interview Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1. What is the Document Object Model (DOM)?
2. What is a node in the DOM?
3. What are the different types of nodes in the DOM?
4. What is the difference between the innerHTML and outerHTML properties?
5. How do you create a new element with JavaScript?
6. How do you add an element to the DOM?
7. What is the parentNode property?
8. How do you remove an element from the DOM?
9. How do you select an element in the DOM?
10. What is event bubbling in the DOM?
11. How do you stop event propagation in the DOM?
12. What is event capturing in the DOM?
13. How do you capture events in the DOM?
14. How do you remove an event listener in the DOM?
15. What is the offsetTop property?
16. What is the offsetLeft property?
17. How do you get the width and height of an element in the DOM?
18. What is the getBoundingClientRect() method?
19. How do you check if an element has a class in the DOM?
20. How do you add a class to an element in the DOM?
21. How do you remove a class from an element in the DOM?
22. What is the difference between attributes and properties in the DOM?
23. How do you set an attribute in the DOM?
24. How do you get an attribute in the DOM?
25. How do you remove an attribute from an element in the DOM?
26. How do you create an event in the DOM?
27. How do you dispatch an event in the DOM?
28. How do you get the position of the mouse pointer in the DOM?
29. How do you detect if the user is scrolling in the DOM?
30. How do you detect if an element is visible in the DOM?
Beta Was this translation helpful? Give feedback.
All reactions