/es6

Primary LanguageJavaScript

es6 all practice task and soloution

Common DOM Related interview questions

this repo is only for personal hand note porpouse!

What is DOM?

DOM stands for Document Object Model. It is a programming interface that allows us to create, change, or remove elements from the document. We can also add events to these elements to make our page more dynamic.

The DOM views an HTML document as a tree of nodes. A node represents an HTML element.

Let's take a look at this HTML code to better understand the DOM tree structure.

What are the different ways to get an element from DOM?

there are many ways to get element from DOM

getElimentByID() for get an specific element;

getElimentsByClassName() for get all the element with the given class name