DOM stands for Document Object Model
I learned this thing long before, that is
DOM !== JavaScript ๐ค
(DOM Methods and Properties are not a part of JavaScript)
Alright, you may ask! If DOM is not a part of JavaScript then how they all work?
The DOM or DOM Methods are part of Web APIs.
API stands for Application Programming Interface
APIs are like libraries, that browsers implement. They can be accessed by our Javascript code. I'll write about APIs in another post.
ย