Тёмный

Do You Know The Difference? 

Web Dev Simplified
Подписаться 1,6 млн
Просмотров 57 тыс.
50% 1

Опубликовано:

 

19 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 92   
@SuboptimalEng
@SuboptimalEng 2 года назад
What Kyle teaches: CSS styling What I want to learn: Hair styling
@arunrawat3142
@arunrawat3142 2 года назад
😂
@gopalloharnew5948
@gopalloharnew5948 2 года назад
😁😁
@DracoVoldre
@DracoVoldre 2 года назад
He did it recently x)
@SuboptimalEng
@SuboptimalEng 2 года назад
@@DracoVoldre I saw 🙌
@sidthetech7623
@sidthetech7623 2 года назад
The thing I like about Kyle's CSS tutorials is he always does it with style.
@DilanDog
@DilanDog 2 года назад
This guy is born to be a teacher and mentor
@fabaladibbasey7453
@fabaladibbasey7453 2 года назад
Also Nodelist can easily be converted into array with spread operator to be able to have all JavaScript array method functionality
@buraksurumcuoglu8303
@buraksurumcuoglu8303 2 года назад
Great tip brother.
@faizanahmed9304
@faizanahmed9304 2 года назад
I agree
@ruturajbhandari7695
@ruturajbhandari7695 Год назад
Can we use Array.from()
@programmingforfun4158
@programmingforfun4158 Год назад
You are genious bro. Instead of focusing on just basic things you always dive deeper.
@connorallen162
@connorallen162 2 года назад
Super helpful! this was such a mystery to me. Though I see why direct DOM manipulation isn't exactly encouraged for beginners, this kind of operation could really use a framework to make it more maintainable and scalable!
@talatkuyuk6556
@talatkuyuk6556 2 года назад
This was my pain, could not understand the weird behavior of the nodes and elements. Thank you very much, now I understand.
@Stevie1derson
@Stevie1derson 2 года назад
Tip to use Array methods on dom elements from document.querySelectorAll() 1) Array.from(document.querySelectorAll(“element”)) 2) […document.querySelectorAll(“.selector”)]
@samandarboymurodov8941
@samandarboymurodov8941 2 года назад
Thank you. Useful tips.
@ayushkushwaha171
@ayushkushwaha171 Год назад
Thanks for this!
@codlover1468
@codlover1468 2 года назад
You are awesome brother. You clear all my doubt. Love from 🇮🇳
@DarkSomaX
@DarkSomaX 2 года назад
Thank you so much, I was breaking my head trying to understand the differences between the nodes and the elements and how they work 🙃
@m4m205
@m4m205 2 года назад
You just save my life. I am working on a project and I need to understand this. Thank you.
@oldclient
@oldclient 2 года назад
Very informative. First time I noticed the difference between these DOM methods when I worked with , and nodes in a project. You have to notice that Node also is handling attributes and other DOM types. Therefore, the nodeType of a Node has these values: 1 (element), 2 (attribute), 3 (text) and more... Nine or ten in total currently.
@AustinThomasFilms
@AustinThomasFilms Год назад
I found this on your website and came to RU-vid to give you a like. Super helpful!!!! This cleared up a lot
@sereneabrahammathew9738
@sereneabrahammathew9738 2 года назад
That info on live updates is really useful 🙂
@dave6012
@dave6012 2 года назад
Yup, can’t say how many times I’ve redefined the same query selector inside functions for dynamic content. Now I know I can keep just one definition in the global scope to get the updates.
@tomraaff4576
@tomraaff4576 2 года назад
you can use instanceof to see if a node is an HTML element. It makes working with nodes easier. ie. if (node instanceof HTMLElement) { node.innerText = 'this is an html element' }
@simonshurety3870
@simonshurety3870 2 года назад
I'm not sure how to set this up?
@Enes-ik4bm
@Enes-ik4bm 2 года назад
Thank you for videos. Love from Turkey 🙂
@karthicksj1936
@karthicksj1936 2 года назад
Thank you Kyle for giving this cheat sheet.Your teaching is also awesome 👌👌
@nsharma4981
@nsharma4981 2 года назад
Only you can demystify the most cryptic of JavaScript's intricacies in such an easily understandable manner within 9 minutes, Kyle! This was really helpful! :)
@gopalloharnew5948
@gopalloharnew5948 2 года назад
Kyle don't use any vscode theme but still he customizes it a lot which we cannot see directly !
@pierre3639
@pierre3639 8 месяцев назад
Awesome! Well explained and simplified
@talhaibnemahmud
@talhaibnemahmud 2 года назад
Extremely helpful video ❤️
@alexmercer8984
@alexmercer8984 2 года назад
Bro, I absolutely Love this video!
@user-zx6jb6ic5e
@user-zx6jb6ic5e 20 дней назад
I lost you at Element. Thanks for sharing
@bayasahamed1815
@bayasahamed1815 Год назад
Thanks for this video and clear explanation.
@raven.4815
@raven.4815 Год назад
Can't thank you enough for this! You really saved me from a couple of headaches lol
@justanotherhotguy
@justanotherhotguy 2 года назад
Learned something new today, thank you!
@arulmuruganK94
@arulmuruganK94 2 года назад
I always had doubts when it comes HTML node and element
@deepaknegi4385
@deepaknegi4385 2 года назад
Awesome information, thanks for sharing
@HarshKapadia
@HarshKapadia 2 года назад
Wow! AMAZING video Kyle!
@naveedalirehmani4135
@naveedalirehmani4135 2 года назад
Thank you Kyle, Thank you very much!
@realfranciscohermida
@realfranciscohermida 2 года назад
Couldn't you easily convert either type of collection to arrays and not have to deal with live updates if that is not desired?
@YaseenAli08
@YaseenAli08 2 года назад
thanks alot, kyle your tips and teachings are very informative and helpful.
@franciswayungi3519
@franciswayungi3519 2 года назад
Thank you very much Kyle for your detailed explanations.
@Stormpaw
@Stormpaw Год назад
Thanks, that video helped a lot!
@johnnypark5398
@johnnypark5398 Год назад
Super well explained. thank you!
@milanpavlovic8141
@milanpavlovic8141 Год назад
This helped me soo much
@vahidseyidov
@vahidseyidov Год назад
Thanks for all man
@MrTomro
@MrTomro 2 года назад
i had no idea about the live update thing. ty
@bones_twisting_sorrow4750
@bones_twisting_sorrow4750 2 года назад
Great explainer, thank you Kyle.
@srinik9999
@srinik9999 2 года назад
I thought it's Node JS vs Someother New technology like Nodejs. 😂
@nayyyhaa
@nayyyhaa 2 года назад
Hahaha samee😂
@mzpl7357
@mzpl7357 2 года назад
me too
@jonathanjeshualaniba5958
@jonathanjeshualaniba5958 2 года назад
i immediately searched for element js XD
@AshokKumar-yi5ph
@AshokKumar-yi5ph 2 года назад
Me toooooo
@WillAyeAce
@WillAyeAce 2 года назад
I thought the same
@tomasgilamoedo8301
@tomasgilamoedo8301 2 года назад
Great content! thank bro
@dave6012
@dave6012 2 года назад
Shedding light on the dark corners 🙌
@AsakuraAvan
@AsakuraAvan 2 года назад
So a node is a superset of an element? Every element is a node but not every node is an element?
@benbrahimilias426
@benbrahimilias426 2 года назад
I think elements is a subset of a node.
@michaeleke3913
@michaeleke3913 2 года назад
Great Video...learnt alot!
@hartztech8098
@hartztech8098 2 года назад
Great to reason for selecting because HTMLCollection its update automatically, When we selected sometime we don't want to update selecting further that we required.
@geforcesong
@geforcesong 2 года назад
That's a good point. thanks!
@shwackthenoobsac
@shwackthenoobsac 2 года назад
Great content
@alexandersage1850
@alexandersage1850 2 года назад
Before I watch… my guess is that nodes refer to anything while element refers to just tag based ones. Element would exclude text nodes and such Edit: despite my poor wording, I appear to be correct. Sweeeeeeet
@bevik12
@bevik12 2 года назад
Can we get a collection of your cheat sheets Kyle? Pleeease!
@yaseenlakhdhar6090
@yaseenlakhdhar6090 2 года назад
Awesome Kyle thanks!
@suryapratapsingh5149
@suryapratapsingh5149 2 года назад
Please cover advance concepts of ES6 and ES7
@vatsalyasinghi438
@vatsalyasinghi438 2 года назад
Please do a tutorial on next js..
@raymondyoo5461
@raymondyoo5461 2 года назад
great video thanks a lot for your tip
@gopalloharnew5948
@gopalloharnew5948 2 года назад
oOo that's why you prefer querySelector instead of getElementsByClassName !
@PerfectionOfError
@PerfectionOfError 2 года назад
Learned something new!
@zenlogie9310
@zenlogie9310 2 года назад
but Kyle, why would we wanna have a static list that doesn't live-update ??
@benbrahimilias426
@benbrahimilias426 2 года назад
I think it's useful in filtering;
@ינוןאלבז-כ1ז
@ינוןאלבז-כ1ז 2 года назад
I ask this my self a long time. Now i gonna figure it
@tinmank
@tinmank 2 года назад
I've got four consecutive notifications this video, its like youtube trying to get an answer for you. do you but do you?
@Shuyinz
@Shuyinz 2 года назад
I didn't get it. Why would you prefer static over live update on HTML? I can't see any real case scenario where it would be harder to debug?
@mhombach3035
@mhombach3035 2 года назад
That was my question too, but I guess that in bigger projects you never know what sideeffects are triggered by calling some function. And let's say you are iteration through the "live updated list" with a for-loop and you are creating a const before that loop and store the list's length in there, then the iteration is faulty if some new element is added inbetween, because the for-loop won't reach the end of the array since it changed length. I guess it's not "bad practice" to use either, you just have to be knowing what you want to do, what things are happening inside your app and then decide for the best method :)
@Shuyinz
@Shuyinz 2 года назад
@@mhombach3035 Sounds very reasonable! Great! Thanks for sharing! :)
@윤지만-w4m
@윤지만-w4m 2 года назад
super awesome
@Pacvalham
@Pacvalham 2 года назад
Does this prevent live updates? const parents = Object.freeze(document.getElementsByClassName('parent'))
@SanjeevKumar-fi1kt
@SanjeevKumar-fi1kt 2 года назад
Hlo sir I need ur help... how can I contact u?
@batuhanunal9380
@batuhanunal9380 Год назад
wonderfull
@funnyclipsmsda
@funnyclipsmsda 2 года назад
I have a request for a video. I do HTML, CSS and JS coding. For one of my projects, I require a custom scrollbar. I know how to make one, but the conventional ::-webkit scrollbars aren't as customizable as I'd like. What I'm looking for is to replace the scrollbar with a div, so that you have to drag the div to scroll, not the scrollbar thumb. Please help me, I haven't found a solution online yet.
@smilo_don
@smilo_don 2 года назад
One way would be to make the div draggable then use the ondrag event to calculate a position and scroll to it using window.scrollTo but it can be dragged both horizontally and vertically so you would have to lock it to only one.
@alexmahone501
@alexmahone501 2 года назад
Beast
@Arabian_Abomination
@Arabian_Abomination 2 года назад
4th
@trentreimer130
@trentreimer130 2 года назад
I'm more inclined to listen to someone who plays a Jackson.
@mohammedelhadididi4612
@mohammedelhadididi4612 2 года назад
First comment , I know that's dumb but...😂
@Arabian_Abomination
@Arabian_Abomination 2 года назад
Your the 1st That’s amazing 💪🏼
@mohammedelhadididi4612
@mohammedelhadididi4612 2 года назад
@@Arabian_Abomination thanks 😃
Далее
JavaScript Arrays Crash Course
6:04
Просмотров 104 тыс.
HTMLCollection vs. NodeList Explained!
19:44
Просмотров 11 тыс.
Распаковка Monster High Potions #monsterhigh
01:00
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 956 тыс.
WTF Do These Even Mean
13:44
Просмотров 87 тыс.
Learn JavaScript DOM Traversal In 15 Minutes
14:44
Просмотров 225 тыс.
Learn Debounce And Throttle In 16 Minutes
16:28
Просмотров 188 тыс.
Junior Vs Senior Code - How To Write Better Code
22:13
Mongoose Crash Course - Beginner Through Advanced
33:36