RUVIDEO
Поделитесь видео 🙏

javascript dom tutorial - document object model (dom) api, javascript object in bangla

In this video I have described about document object model api in javascript in Bangla. Hope you will understand dom api very easily from this video. Source file and tutorial will be available in following link: https://github.com/polodev/javascript_dom_yt_bangla

js object
object is a composite data type in js. We can store data in object with key value pairs. here key also known as properties. If key value is a function we called it method. We can access object key using . notation or [index] . . is easy to use and require less typing and look clean.

var person = {
first_name: 'sumon',
last_name: 'ahmed',
fullName: function () {
return person.first_name + " " + person.last_name;
}
}
Here person is a object. which has first_name and last_name properties and fullName method.

Document object model (DOM)
Document object model is a javascript api which help us to manipulate html document in browser. Here html can be getting and mutate through document object. document object contain lot of properties and method which help us to manipulate html document. suppose we want to change html or text content of an element in such case we will do following

// for html
element_name.innerHTML = "some html content"
// for text
element_name.innerText = "some html content"
In order to manipulate dom we first select an element. Whenever we select an element it could be single element or array of element. We can getting or setting directly single element. But if its return array of element we have to destruct array to single element by index or iterate (looping). Then we will be able to set or get value from element.

some single return
document.title // it will give us string. Since entire document title occur only one times.
document.body // it will give us string. Since entire document body occur only one times.
document.getElementById('some_id') // it will give us string since id will be unique in entire page.
some array return
document.getElementsByTagName('h1') it will give us array return. Since h1 could be occur in html page multiple times. in this case we can access our appropriate h1 element by indexing like document.getElementsByTagName('h1')[0]
When we want to mutate all element of a array return we should iterate it with loop. Like following

var a = document.getElementsByTagName('a');
for (variable initialization, condition, increment or decrement) {
a[i].style.color = 'red';
}

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «javascript dom tutorial - document object model (dom) api, javascript object in bangla», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.