The JavaScript DOM explained in 5 minutes! 🌳
HTML-код
- Опубликовано: 4 дек 2023
- #JavaScript #tutorial #course
// DOM = DOCUMENT OBJECT MODEL
// Object{} that represents the page you see in the web browser
// and provides you with an API to interact with it.
// Web browser constructs the DOM when it loads an HTML document,
// and structures all the elements in a tree-like representation.
// JavaScript can access the DOM to dynamically
// change the content, structure, and style of a web page.
// DOM = DOCUMENT OBJECT MODEL
// Object{} that represents the page you see in the web browser
// and provides you with an API to interact with it.
// Web browser constructs the DOM when it loads an HTML document,
// and structures all the elements in a tree-like representation.
// JavaScript can access the DOM to dynamically
// change the content, structure, and style of a web page.
console.log(document);
console.dir(document);
document.title = "My website";
document.body.style.backgroundColor = "hsl(0, 0%, 15%)";
const username = "";
const welcomeMsg = document.getElementById("welcome-msg");
welcomeMsg.textContent += username === "" ? `Guest` : username;
Document
Welcome
Your video is good with clear explanations and it's easy for me to understand the code. I love it.
bro make ai video
Bro, this is the first time I've really understood how the DOM works. Thanks for the clear and simple breakdown of such a complex concept.
I learnt html and css easily by your videos ❤ now I'm trying to learn js 🙏
Thank you so so so much
Alot support for you bro❤
This is soo clear explanation broooo! Thank you!!!!
that is such a good explanation
bro fr knows the bro code
crazy good introduction, incredible I watched a 3 hour tutorial and didnt even scratch this, thx again
short simple videos are always better because you can just practice and mess around after with the information you learnt
please keep doing what you're doing bro🙏🏻
Awesome video😎😎👍👍
Cheers for this tutorial.
Great video !
All I can say is _Understandable and have a good day_
Thank you
Thank you sir
0:07 DOM is not a JS object, but it represent the page we see in the browser
Surprise Surprise mfs the King is back👑
CHAD! Chanel 🍷🗿
zguba!
W
fru