Learn DOM Navigation in 15 minutes! 🧭

  Рет қаралды 17,555

Bro Code

Bro Code

Күн бұрын

Пікірлер
@BroCodez
@BroCodez Жыл бұрын
// DOM Navigation = The process of navigating through the structure // of an HTML document using JavaScript. // .firstElementChild // .lastElementChild // .nextElementSibling // .previousElementSibling // .parentElement // .children // ---------- .firstElementChild ---------- const ulElements = document.querySelectorAll("ul"); ulElements.forEach(ulElement => { const firstChild = ulElement.firstElementChild; firstChild.style.backgroundColor = "yellow"; }); // ---------- .lastElementChild ---------- const ulElements = document.querySelectorAll("ul"); ulElements.forEach(ulElement => { const lastChild = ulElement.lastElementChild; lastChild.style.backgroundColor = "yellow"; }); // ---------- .nextElementSibling ---------- const element = document.getElementById("vegetables"); const nextSibling = element.nextElementSibling; nextSibling.style.backgroundColor = "yellow"; // ---------- .previousElementSibling ---------- const element = document.getElementById("desserts"); const prevSibling = element.previousElementSibling; prevSibling.style.backgroundColor = "yellow"; // ---------- .parentElement ---------- const element = document.getElementById("ice cream"); const parent = element.parentElement; parent.style.backgroundColor = "yellow"; // ---------- .children ---------- const element = document.getElementById("fruits"); const children = element.children; Array.from(children).forEach(child => { child.style.backgroundColor = "yellow"; });
@kosovaR7
@kosovaR7 Жыл бұрын
You have been tremendously helpfull during my learning journey in my bootcamp. Thank you so much!
@zappmen
@zappmen Жыл бұрын
ahh finally, i watching all of your new js playlist its helpful to get me understanding js can't wait for the next content. Thank you bro😁🎉
@MulusewWase-r7b
@MulusewWase-r7b 4 ай бұрын
Thank you so much!! I have not words dear.
@shafiq_ramli
@shafiq_ramli Жыл бұрын
I still don't get it why I don't see your uploaded videos on my subscription feed. What's wrong with my KZbin account?
@whatevero3701
@whatevero3701 Жыл бұрын
Hes pressing the button to hide all videos from subscribers you're welcum
@darkslopegaming6855
@darkslopegaming6855 Жыл бұрын
Hey Bro Code, I really enjoy your videos and I have learnt a ton from you! I was wondering if you had a patreon page or a donation page or something, cause I really want to support you!
@hunin27
@hunin27 Жыл бұрын
He supports St. Jude hospital in some of his videos so you could donate there, would be a nice act
@darkslopegaming6855
@darkslopegaming6855 Жыл бұрын
@@hunin27 Oh..okay thank you.
@xzex2609
@xzex2609 11 ай бұрын
Bro I see that you select your line to copy it on the new line , VS Code has this very useful key command that wiothout selecting duplicates the current line it's ALT+SHIFT +D i really am addicted to this way
@JarvisBaileyVA
@JarvisBaileyVA Жыл бұрын
How did you know I was having this exact lesson TODAY?
@ravin20th
@ravin20th Жыл бұрын
Can u tutorial VueJs!? Full course 👌
@saikikusou20
@saikikusou20 Жыл бұрын
hey bro code how about "asm" full course?
@hunin27
@hunin27 Жыл бұрын
Lol hell never publish that, that language is hard as hell
@DKetik
@DKetik Жыл бұрын
Bro, make tutorial for libgdx java
@tamilvoicestudio6745
@tamilvoicestudio6745 Жыл бұрын
Flutter course please BRO🎉🎉🎉🎉
@harshjaiswal1634
@harshjaiswal1634 Жыл бұрын
Bro continue the series.
@kvo6307
@kvo6307 Жыл бұрын
Does anyone know when he will release the full course?
@raitaskeen
@raitaskeen Жыл бұрын
Bro TypeScript...
How to ADD/CHANGE HTML using JavaScript 🛠️
15:33
Bro Code
Рет қаралды 17 М.
Learn JavaScript ELEMENT SELECTORS easy! 📑
17:38
Bro Code
Рет қаралды 31 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Learn the JavaScript classList property easy! 💡
16:00
Bro Code
Рет қаралды 12 М.
Build this JS calculator in 15 minutes! 🖩
15:20
Bro Code
Рет қаралды 705 М.
Learn DOM Manipulation In 18 Minutes
18:37
Web Dev Simplified
Рет қаралды 1 МЛН
What are NodeLists in JavaScript? 📃
13:22
Bro Code
Рет қаралды 10 М.
Learn JavaScript KEY EVENTS in 10+ minutes! ⌨
11:16
Bro Code
Рет қаралды 29 М.
Learn how JavaScript COOKIES work! 🍪
14:15
Bro Code
Рет қаралды 59 М.
Learn JavaScript ARROW FUNCTIONS in 8 minutes! 🎯
8:02
Bro Code
Рет қаралды 45 М.
Build a JavaScript IMAGE SLIDER in 15 minutes! 🖼️
15:49
Bro Code
Рет қаралды 59 М.
What is JavaScript CALLBACK HELL? 🔥
5:49
Bro Code
Рет қаралды 28 М.