Do You Know The Difference?

  Рет қаралды 58,409

Web Dev Simplified

Web Dev Simplified

Күн бұрын

Пікірлер: 93
@SuboptimalEng
@SuboptimalEng 3 жыл бұрын
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 🙌
@DilanDog
@DilanDog 3 жыл бұрын
This guy is born to be a teacher and mentor
@sidthetech_USA
@sidthetech_USA 3 жыл бұрын
The thing I like about Kyle's CSS tutorials is he always does it with style.
@programmingforfun4158
@programmingforfun4158 2 жыл бұрын
You are genious bro. Instead of focusing on just basic things you always dive deeper.
@fabaladibbasey7453
@fabaladibbasey7453 3 жыл бұрын
Also Nodelist can easily be converted into array with spread operator to be able to have all JavaScript array method functionality
@buraksurumcuoglu8303
@buraksurumcuoglu8303 3 жыл бұрын
Great tip brother.
@faizanahmed9304
@faizanahmed9304 2 жыл бұрын
I agree
@ruturajbhandari7695
@ruturajbhandari7695 Жыл бұрын
Can we use Array.from()
@Stevie1derson
@Stevie1derson 3 жыл бұрын
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!
@AustinThomasFilms
@AustinThomasFilms Жыл бұрын
I found this on your website and came to KZbin to give you a like. Super helpful!!!! This cleared up a lot
@gopalloharnew5948
@gopalloharnew5948 2 жыл бұрын
Kyle don't use any vscode theme but still he customizes it a lot which we cannot see directly !
@connorallen162
@connorallen162 3 жыл бұрын
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!
@oldclient
@oldclient 3 жыл бұрын
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.
@tomraaff4576
@tomraaff4576 3 жыл бұрын
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?
@m4m205
@m4m205 3 жыл бұрын
You just save my life. I am working on a project and I need to understand this. Thank you.
@talatkuyuk6556
@talatkuyuk6556 3 жыл бұрын
This was my pain, could not understand the weird behavior of the nodes and elements. Thank you very much, now I understand.
@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 🙃
@pierre3639
@pierre3639 11 ай бұрын
Awesome! Well explained and simplified
@codlover1468
@codlover1468 2 жыл бұрын
You are awesome brother. You clear all my doubt. Love from 🇮🇳
@BoatLoad-o5z
@BoatLoad-o5z 15 күн бұрын
when someone incorrectly say "doubt" instead of "question" we know right away he/she is indian
@sereneabrahammathew9738
@sereneabrahammathew9738 3 жыл бұрын
That info on live updates is really useful 🙂
@dave6012
@dave6012 3 жыл бұрын
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.
@talhaibnemahmud
@talhaibnemahmud 3 жыл бұрын
Extremely helpful video ❤️
@alexmercer8984
@alexmercer8984 2 жыл бұрын
Bro, I absolutely Love this video!
@nsharma4981
@nsharma4981 3 жыл бұрын
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! :)
@johnnypark5398
@johnnypark5398 2 жыл бұрын
Super well explained. thank you!
@Enes-ik4bm
@Enes-ik4bm 2 жыл бұрын
Thank you for videos. Love from Turkey 🙂
@raven.4815
@raven.4815 Жыл бұрын
Can't thank you enough for this! You really saved me from a couple of headaches lol
@karthicksj1936
@karthicksj1936 3 жыл бұрын
Thank you Kyle for giving this cheat sheet.Your teaching is also awesome 👌👌
@HarshKapadia
@HarshKapadia 3 жыл бұрын
Wow! AMAZING video Kyle!
@justanotherhotguy
@justanotherhotguy 3 жыл бұрын
Learned something new today, thank you!
@bayasahamed1815
@bayasahamed1815 Жыл бұрын
Thanks for this video and clear explanation.
@MrTomro
@MrTomro 3 жыл бұрын
i had no idea about the live update thing. ty
@akash-m8g6p
@akash-m8g6p 3 ай бұрын
I lost you at Element. Thanks for sharing
@deepaknegi4385
@deepaknegi4385 3 жыл бұрын
Awesome information, thanks for sharing
@YaseenAli08
@YaseenAli08 2 жыл бұрын
thanks alot, kyle your tips and teachings are very informative and helpful.
@realfranciscohermida
@realfranciscohermida 3 жыл бұрын
Couldn't you easily convert either type of collection to arrays and not have to deal with live updates if that is not desired?
@dave6012
@dave6012 3 жыл бұрын
Shedding light on the dark corners 🙌
@arulmuruganK94
@arulmuruganK94 3 жыл бұрын
I always had doubts when it comes HTML node and element
@Stormpaw
@Stormpaw 2 жыл бұрын
Thanks, that video helped a lot!
@naveedalirehmani4135
@naveedalirehmani4135 2 жыл бұрын
Thank you Kyle, Thank you very much!
@franciswayungi3519
@franciswayungi3519 3 жыл бұрын
Thank you very much Kyle for your detailed explanations.
@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.
@asagex
@asagex 3 жыл бұрын
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
@milanpavlovic8141
@milanpavlovic8141 Жыл бұрын
This helped me soo much
@bevik12
@bevik12 3 жыл бұрын
Can we get a collection of your cheat sheets Kyle? Pleeease!
@srinik9999
@srinik9999 3 жыл бұрын
I thought it's Node JS vs Someother New technology like Nodejs. 😂
@nayyyhaa
@nayyyhaa 3 жыл бұрын
Hahaha samee😂
@mzpl7357
@mzpl7357 3 жыл бұрын
me too
@jonathanjeshualaniba5958
@jonathanjeshualaniba5958 3 жыл бұрын
i immediately searched for element js XD
@AshokKumar-yi5ph
@AshokKumar-yi5ph 3 жыл бұрын
Me toooooo
@WillAyeAce
@WillAyeAce 3 жыл бұрын
I thought the same
@bones_twisting_sorrow4750
@bones_twisting_sorrow4750 3 жыл бұрын
Great explainer, thank you Kyle.
@suryapratapsingh5149
@suryapratapsingh5149 3 жыл бұрын
Please cover advance concepts of ES6 and ES7
@vahidseyidov
@vahidseyidov Жыл бұрын
Thanks for all man
@zenlogie9310
@zenlogie9310 3 жыл бұрын
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;
@michaeleke3913
@michaeleke3913 3 жыл бұрын
Great Video...learnt alot!
@tomasgilamoedo8301
@tomasgilamoedo8301 2 жыл бұрын
Great content! thank bro
@raymondyoo5461
@raymondyoo5461 3 жыл бұрын
great video thanks a lot for your tip
@geforcesong
@geforcesong 3 жыл бұрын
That's a good point. thanks!
@hartztech8098
@hartztech8098 3 жыл бұрын
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.
@yaseenlakhdhar6090
@yaseenlakhdhar6090 3 жыл бұрын
Awesome Kyle thanks!
@vatsalyasinghi438
@vatsalyasinghi438 3 жыл бұрын
Please do a tutorial on next js..
@ינוןאלבז-כ1ז
@ינוןאלבז-כ1ז 3 жыл бұрын
I ask this my self a long time. Now i gonna figure it
@Shuyinz
@Shuyinz 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
@@mhombach3035 Sounds very reasonable! Great! Thanks for sharing! :)
@shwackthenoobsac
@shwackthenoobsac 3 жыл бұрын
Great content
@tinmank
@tinmank 3 жыл бұрын
I've got four consecutive notifications this video, its like youtube trying to get an answer for you. do you but do you?
@Pacvalham
@Pacvalham 3 жыл бұрын
Does this prevent live updates? const parents = Object.freeze(document.getElementsByClassName('parent'))
@PerfectionOfError
@PerfectionOfError 3 жыл бұрын
Learned something new!
@gopalloharnew5948
@gopalloharnew5948 2 жыл бұрын
oOo that's why you prefer querySelector instead of getElementsByClassName !
@SanjeevKumar-fi1kt
@SanjeevKumar-fi1kt 3 жыл бұрын
Hlo sir I need ur help... how can I contact u?
@funnyclipsmsda
@funnyclipsmsda 3 жыл бұрын
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 3 жыл бұрын
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.
@윤지만-w4m
@윤지만-w4m 3 жыл бұрын
super awesome
@alexmahone501
@alexmahone501 3 жыл бұрын
Beast
@batuhanunal9380
@batuhanunal9380 Жыл бұрын
wonderfull
@trentreimer130
@trentreimer130 3 жыл бұрын
I'm more inclined to listen to someone who plays a Jackson.
@Arabian_Abomination
@Arabian_Abomination 3 жыл бұрын
4th
@mohammedelhadididi4612
@mohammedelhadididi4612 3 жыл бұрын
First comment , I know that's dumb but...😂
@Arabian_Abomination
@Arabian_Abomination 3 жыл бұрын
Your the 1st That’s amazing 💪🏼
@mohammedelhadididi4612
@mohammedelhadididi4612 3 жыл бұрын
@@Arabian_Abomination thanks 😃
JavaScript Arrays Crash Course
6:04
Web Dev Simplified
Рет қаралды 111 М.
5 MORE Must Know JavaScript Features That Almost Nobody Knows
18:05
Web Dev Simplified
Рет қаралды 180 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
The CSS Display Property is Changing Forever
15:20
Web Dev Simplified
Рет қаралды 75 М.
This Is Unbelievably Powerful
11:15
Web Dev Simplified
Рет қаралды 107 М.
Learn JavaScript DOM Traversal In 15 Minutes
14:44
Web Dev Simplified
Рет қаралды 229 М.
Another 5 Must Know JavaScript Features That Almost Nobody Knows
22:42
Web Dev Simplified
Рет қаралды 215 М.
Learn JavaScript Touch Events In 17 Minutes
17:45
Web Dev Simplified
Рет қаралды 113 М.
Every JavaScript Developer Has Made This Mistake With Functions
7:17
Web Dev Simplified
Рет қаралды 108 М.
Learn Debounce And Throttle In 16 Minutes
16:28
Web Dev Simplified
Рет қаралды 197 М.
Learn DOM Manipulation In 18 Minutes
18:37
Web Dev Simplified
Рет қаралды 1 МЛН
5 Must Know JavaScript Features That Almost Nobody Knows
18:06
Web Dev Simplified
Рет қаралды 478 М.
JavaScript Cookies vs Local Storage vs Session Storage
14:28
Web Dev Simplified
Рет қаралды 767 М.