Learn JavaScript Event Listeners In 18 Minutes

  Рет қаралды 597,999

Web Dev Simplified

Web Dev Simplified

Күн бұрын

Пікірлер: 571
@samuelamare3080
@samuelamare3080 3 жыл бұрын
I don't know what's more perfect, this guy's tutorials or his hair!
@chenteramos09
@chenteramos09 3 жыл бұрын
LOL dude thats what i was thinking halfway thru the video
@antoniofuller2331
@antoniofuller2331 3 жыл бұрын
Lord Sosuke Aizen would like to know your location
@FaBioW114
@FaBioW114 3 жыл бұрын
I have to agree :D
@feranmi_oni8424
@feranmi_oni8424 3 жыл бұрын
honestly😂
@vaguebrownfox
@vaguebrownfox 3 жыл бұрын
both
@ShinAkuma
@ShinAkuma 4 жыл бұрын
This is the hands down the best tutorial I've ever seen on event listeners.
@bk._550
@bk._550 4 жыл бұрын
ok
@Ali-mc4le
@Ali-mc4le 4 жыл бұрын
www.udemy.com/course/coding-interview-crash-course-for-web-developer-2020/?couponCode=ADA6B72288D49A1CAE25
@AndrewTSq
@AndrewTSq 3 жыл бұрын
This is the hands down the best comment I've ever seen on videos on event listeners. :-) No he is a good guy who do great videos.
@silentxcure
@silentxcure 3 жыл бұрын
@@AndrewTSq This is the hands down the best response to a comment I've ever seen on videos on event listeners.
@_shuu9472
@_shuu9472 3 жыл бұрын
To me he's the best tutor i've ever found on the internet
@Wesley-Insley-Comedy
@Wesley-Insley-Comedy 4 жыл бұрын
WDS is so nice. no "WHATS UP GUYS AND TODAAY WE ARE LEARNINGGG" - nope. Just a nice, calm, easy to listen to voice and concise and succinct explanations. six months ago I didn't know the difference between the different css selectors and now I am comfortable with react & have started working with firebase. MOST of that came knowledge came from this channel. Couldn't be more grateful. Thanks dude!
@WebDevSimplified
@WebDevSimplified 4 жыл бұрын
I'm so glad I could help!
@oortcloud210
@oortcloud210 Жыл бұрын
Been coding in JS for 25 years and didn't know about doing a matches call on an event object. It's why I look at videos like this now and then. To refresh and also because you are always learning something new!
@sapindersingh1165
@sapindersingh1165 4 жыл бұрын
I rarely like a video on youtube and this one deserves it. These 18 minutes just leveled up my knowledge about event listeners. Thanks Kyle!
@bk._550
@bk._550 4 жыл бұрын
same
@KingKongHitDaBong
@KingKongHitDaBong 2 жыл бұрын
dont be stingy with the likes
@sapindersingh1165
@sapindersingh1165 2 жыл бұрын
@@KingKongHitDaBong haha I gave you a like 😄
@sanghvian
@sanghvian 4 жыл бұрын
It's just unreal how amazing you are at teaching new concepts as well as making us rethink learnt ones with a fresh and novel direction. Thanks a lot !!!
@ChrispyChris3
@ChrispyChris3 2 жыл бұрын
The way dude talks super chill and laid back, while not being monotone, AND explaining things well is pretty amazing!
@Bebsi42069
@Bebsi42069 2 жыл бұрын
When looking for to wrap 1 click event listener around multiple buttons but have each button do it's own thing this pops up and is an absolute god send, now I can clean up my clunky code and publish my Accessibility extention!!!!!! Finally after weeks of errors a solution arrives in hair slick back
@azuboof
@azuboof Жыл бұрын
wait how the fuck am i understanding it all even when im tired and sleepy and not putting 100% attention its just flowing into my ears, the explanation is so simple and good. Thank you goat
@raamch
@raamch 2 жыл бұрын
You're a leader... Who inspires many and leads the beginner warriors.
@gettingComputey
@gettingComputey 3 жыл бұрын
I've seen a lot of event listener tutorials and this one is best explained. Thank you!
@pavkey88
@pavkey88 3 жыл бұрын
Not only is this a great tutorial on event listeners, it’s also a great way to approach learning how to debug
@ashkanahmadi
@ashkanahmadi 3 жыл бұрын
I was scratching my head for DAYS how to solve the event delegation problem. This finally solved my problem. THANK YOU
@valeriatapia1128
@valeriatapia1128 Жыл бұрын
I FINALLY UNDERSTAND event listeners!! Thanks Kyle!! You're a life saver!
@Pareshbpatel
@Pareshbpatel 3 жыл бұрын
Listen up! - This is, by far , the best tutorial on event listeners I have ever come across. Thank you, Kyle {2021-06-29}
@stevenleonmusic
@stevenleonmusic 3 жыл бұрын
I love event delegation but the one caveat I have is that e. target is always the *most deeply-nested* element. If you want to have your delegate listen for a click event you will be sorely disappointed when it never runs or behaves unexpectedly because your elements are the actual click targets. I've been looking for a clean solution but the easiest thing is to just use a selector that will include the child elements or base everything on the child elements instead of trying to do a container element.
@maxathanja
@maxathanja 4 жыл бұрын
Wow, this is just what I need at the moment. You’re a lifesaver, thanks!
@AndrewMelnychuk0seen
@AndrewMelnychuk0seen 3 жыл бұрын
I'm coming from C++ and python and your videos have made me way less mad at javascript. Keep up the great work.
@jsmastery1931
@jsmastery1931 3 жыл бұрын
dude i swear u have special talent in simplifying stuff.....
@indratejdev3691
@indratejdev3691 2 жыл бұрын
When it comes to webdevelopment. he is one of the youtuber who explains simple,crisp and clear. Thank you so much.
@chandrakant6283
@chandrakant6283 3 жыл бұрын
I've been struggling to understand Delegation & Event Flow, but thanx to this guy now I've understood it well and likely will never forget.
@fredcmor
@fredcmor Жыл бұрын
All the sudden I had to start working with JavaScript and I did not put my hands on it since… somewhere around 2008. Your crash courses are being a life savior. Thanks. Btw, great job!
@Danelius90
@Danelius90 Жыл бұрын
Same! I'm a fairly experienced backend engineer that's managed to avoid JS for a lot of my career. Now I have to work with it these videos are so good!
@NaveenYadav-gr4sc
@NaveenYadav-gr4sc Жыл бұрын
@@Danelius90 👍🙏v TVllkjcvl l No jio k
@NaveenYadav-gr4sc
@NaveenYadav-gr4sc Жыл бұрын
@@Danelius90 l
@NaveenYadav-gr4sc
@NaveenYadav-gr4sc Жыл бұрын
Ppnnpkpppj knjjnknkpp
@NaveenYadav-gr4sc
@NaveenYadav-gr4sc Жыл бұрын
Hn la jlkpjkplmlm Vflov Bbkpk Kkmp
@michaeljohnson1576
@michaeljohnson1576 2 жыл бұрын
Hey there, Web Dev Simplified! I just wanted to say that your video on avoiding getting stuck on JavaScript by doing simple things really helped me. Since then, I have attempted to change the way I study JavaScript and while I can't say that I'm striding, I'm definitely moving at a faster pace. I hope you realize just how much you mean to us! Like seriously, your calm mentoring demeanor alone makes these lessons so much more watchable. Thanks a ton!
@CoryJaccino
@CoryJaccino 4 жыл бұрын
This is one of many reasons why I’ve bought all of his courses.
@CoryJaccino
@CoryJaccino 4 жыл бұрын
I’d love to see another video on that last part - or even a course - on React (or Angular since I’m starting to learn observables) and event listener best practices. The more projects the better. Thanks for this great video, Kyle!
@WebDevSimplified
@WebDevSimplified 4 жыл бұрын
Thank you so much for the support. I will keep this in mind for when I update my React course.
@Ali-mc4le
@Ali-mc4le 4 жыл бұрын
www.udemy.com/course/coding-interview-crash-course-for-web-developer-2020/?couponCode=ADA6B72288D49A1CAE25
@CoryJaccino
@CoryJaccino 3 жыл бұрын
@@WebDevSimplified Hey Kyle, I think Ali is on to something. You could make an awesome course on data structures, especially as they are used in the frontend. You could teach it in JavaScript and then show it in React or even in various libraries like Angular, Vue, etc. That would give your courses even more breadth / exposure. Just throwing it out there.
@kirksurber7262
@kirksurber7262 2 жыл бұрын
just spent 12 hours yesterday trying to figure why a delete button wouldn't function on a shopping list I'm making. Here you are explaining it in minutes lol
@thewetfly9207
@thewetfly9207 Жыл бұрын
Add Event Listener for future elements blow my mind. Respect 😎
@namesaditya
@namesaditya Жыл бұрын
The last one - adding the globalEventListener is a really good trick. Thanks man
@bigbtripathi
@bigbtripathi 2 жыл бұрын
This is the best explanation of event listeners that I have found in youtube so far.
@aluuusch
@aluuusch 2 жыл бұрын
It's a very good tutorial. That being said you might wanna show the html-file shortly in the beginning of the video - just for a better understanding.
@angelsunshine885
@angelsunshine885 2 жыл бұрын
You Sir, my FANTASTIC teacher! Thank you from the bottom of my heart for providing such valuable and well-explained content!
@OrmHaxanThle
@OrmHaxanThle 2 жыл бұрын
I've brought so many content about JS, Node.js , ALGORITHMS, Design Patters from different instructors and I have NEVER been able to understand any of these in such depth as Kyle makes me do.
@michaeld663
@michaeld663 3 жыл бұрын
Thanks solved my problem with the event delegation. I spent like an hour trying to figure it out.
@davidrowlands8962
@davidrowlands8962 3 жыл бұрын
I had understood bubbling since we commonly deal with it, but never really got my head around capturing until this video. Now I understand the third argument in the event parameters. This video has made it crystal clear to me. Thanks very much.
@reaperforever8478
@reaperforever8478 3 жыл бұрын
This has made my day , I have been working on a routine app to better schedule my classes , in vanilla js with ejs as a templating engine , used a event listener to attach to a modal for picking the time but I needed some way to delete the event listener after I'm done otherwise it would change all the dates at once , this has saved soo much time
@PunkSage
@PunkSage 2 жыл бұрын
Excellent explanation. I think that a difference between stopPropagation vs stopImmediatePropagation was also worth mentioning.
@xGalasko
@xGalasko 2 жыл бұрын
easiest way to remember bubbling is that in a row of bubbles if i throw a needles through the bubbles they will pip one after the other in a row til the last one, but when you capture something with a camera for example, the closest thing to the lens will be captured first etc
@vincentjohnflorio
@vincentjohnflorio 3 жыл бұрын
The beauty of the event delegation at the end is that it's a conventional event listener on the one "element" that there can't be more of and would never need delegation. You produce new things within it, but never a new "it" entirely. So it's a "live" content check.
@richardramirez5746
@richardramirez5746 2 жыл бұрын
It's really useful to watch your videos. You keep the same calmed speaking.. I appreciate that!
@parmeetsingh9766
@parmeetsingh9766 3 жыл бұрын
Clean . Crisp . To the point . Hands down , thank god it was the first tutorial i saw
@oujisanhikari18
@oujisanhikari18 3 ай бұрын
Excellent explanation hands down best eventListner tutorial I've come across, it's insane how easy to digest it was, Thank you Kyle
@bluesteel1
@bluesteel1 3 жыл бұрын
hidden gem ... kyle's once of the best instructors out there
@mayankstylerock
@mayankstylerock 3 жыл бұрын
The best video of Js and u truly do justice with your channel name "Simplified". Thanks for your hard work man
@aneeqak
@aneeqak 4 жыл бұрын
u r my mentor, U made the whole web alot more simpler and interesting
@TheCodingOdyssey
@TheCodingOdyssey 4 жыл бұрын
because its Web Dev Simplified :P
@peksonholinificent7056
@peksonholinificent7056 2 жыл бұрын
I think Kyle is cool. His English is clean and simple, knows his stuff and is a great teacher...so you know what,let me just smash that subscribe button!
@quentina.3021
@quentina.3021 3 жыл бұрын
Man, you are an awesome teacher! Best explanation/tutorial of event listeners I’ve ever seen.
@abhijeetmokale5604
@abhijeetmokale5604 3 жыл бұрын
I've always wondered what does the third parameter in event listener does and Thanks to you !!!! your way of explaining makes everything easy to understand...love from INDIA !!!
@TomasMisura
@TomasMisura 3 жыл бұрын
I am not gonna lie I found this video as extremely useful as everything I need is in one place and don't need to look around. I am not using Event listeners very often even I would (I am not pro, sorry ) but this video made me to learn more about.
@DaddyChronic
@DaddyChronic 3 жыл бұрын
I am doing JS since 1998 and learned a lot. Thank You
@samirkhatri-dev
@samirkhatri-dev 3 жыл бұрын
Kyle does good and in-depth research regarding any topic. Best Video.
@marcusaureliusregulus2833
@marcusaureliusregulus2833 3 жыл бұрын
Figured out yesterday that there was more to event listeners. Guess whose video I chose to watch to clear all doubts😊
@MecksOnwenu
@MecksOnwenu 3 жыл бұрын
This is very informative. Eventlisteners are a real deal in JavaScript DOM interactions.
@kenkinyua7036
@kenkinyua7036 2 жыл бұрын
i learned a lot , this by far the best channel for me in coding ....thanks
@chander1542
@chander1542 4 жыл бұрын
Looks like from the next. I dont have read docs for applying event listener. Thank you for the simplest explanation
@zakariairkha2096
@zakariairkha2096 2 жыл бұрын
Thank u much. U literally just solved my life with that event delegation.
@dsvhs93
@dsvhs93 4 жыл бұрын
Look at that fresh fade! Thanks Kyle for the lesson! Will have to watch this a little later on! But I already know it’s awesome!
@Ruth5664
@Ruth5664 2 жыл бұрын
This is the clearest and neatest that the Event Listeners can get. Thanks buddy!
@abdullahsoomro6238
@abdullahsoomro6238 2 жыл бұрын
I watched this video 2 times. To really understand the event bubbling and event capturing. You taught it really nice and simple way.❤
@rossclutterbuck1060
@rossclutterbuck1060 Жыл бұрын
Nice and concise overview. Conspicuous by their absence are stopImmediatePropagation and preventDefault methods for the event.
@bmehder
@bmehder 3 жыл бұрын
I never knew how much I didn't know about event listeners. Excellent tut as usual.
@tan2cang93
@tan2cang93 3 жыл бұрын
thanks, bro. now I know how to implement removeEventListener() correctly
@catt_1763
@catt_1763 Жыл бұрын
Thanks sir I have learnt so many things from you including advanced css and basics of js now going for advanced js (Modules and js frameworks )
@ug3469
@ug3469 2 жыл бұрын
Thank you very much for covering so many options for event listeners
@eduard289
@eduard289 2 жыл бұрын
omg 17:00 thank you so much about it ! Knowledge here ..
@shankarghimire4492
@shankarghimire4492 3 жыл бұрын
Thank you so much, lol! I was having headache due to the similar issues on my assignment and finally your this video tutorial helped me solve the issue. I am so grateful to you. Thanks once for sharing your knowledge and skills with the world! :)
@itboardroom5085
@itboardroom5085 2 жыл бұрын
can't say having headache say have headache or feel pain in my head
@leg875
@leg875 Жыл бұрын
Quality teaching. Seen couple of videos and landed here, you brought smile into my face. Narration matters :)
@Born2DoubleUp
@Born2DoubleUp 3 жыл бұрын
you explain things so well... im watching all your lessons.
@deniskotov
@deniskotov 2 жыл бұрын
Your channel is a chest of gold for me! Thanks a lot!
@kantyDarius
@kantyDarius 4 жыл бұрын
Man... You are a real web dev simplifier👏
@EmekaDavid-k8d
@EmekaDavid-k8d Жыл бұрын
I like the part where you added a global event listener function I do that for all my codes 😁
@kalyanp7857
@kalyanp7857 3 жыл бұрын
Teaching is an art but with precision is what Kyle has! I have been a backend guy for 04 years but now I want to do some cool UI stuff your videos are helping a lot. Thanks mate!
@sallylauper8222
@sallylauper8222 3 жыл бұрын
I thought backend guys knew everything?
@md.hasanmahmudrimon9867
@md.hasanmahmudrimon9867 2 жыл бұрын
you never fail to surprise. Your channel name is justified
@brandmasis
@brandmasis 4 ай бұрын
The event delegation thing is super clever
@nehagarg1380
@nehagarg1380 2 жыл бұрын
This is one of the best video on event listner.
@theomegamale5335
@theomegamale5335 2 жыл бұрын
Already knew this stuff, but definitely a great video for those newer to events in js and i still enjoyed watching regardless. Keep up the good work!
@lucianasuciu4798
@lucianasuciu4798 2 жыл бұрын
You're my favorite professor :))) Your videos are amazing , i learned a lot . Thank you so much for your work !
@annspervaiz8770
@annspervaiz8770 3 жыл бұрын
I don't usually comment on KZbin but honestly only your tutorials have cleared my all concepts of JS.... Seriously I've been watching #cleverprogramming #freecodecamp and even one's of Mosh Hamadani's but you actually nailed it.. Way too much THANKFUL of yours...!
@abhishekmakhun3118
@abhishekmakhun3118 2 жыл бұрын
Mate, this is the best channel on youtube.
@vimalathithand917
@vimalathithand917 2 жыл бұрын
the best video on eventlisteners...great video,learned a lot of things.Really helpful ...!Thank you so much..!😄
@michaelbrauner
@michaelbrauner 3 жыл бұрын
Oh dude. I like how your break it down and structure your tutorials. Very good.
@LanguageSkillz
@LanguageSkillz 3 жыл бұрын
Love the attn to capture events! Can't find it more fully explored anywhere else.
@modoulaminceesay9211
@modoulaminceesay9211 2 жыл бұрын
Thanks just learning js and exploring front end
@louzynerd129
@louzynerd129 4 жыл бұрын
What a coincidence i just started learning js a week ago perfect timing man!
@madhusaini22
@madhusaini22 Жыл бұрын
His eyes, hair & content is just🎉🔥
@pauldodd6909
@pauldodd6909 3 жыл бұрын
Really easy to understand video of events and event listeners in JavaScript. Thank you.
@tommykelly1007
@tommykelly1007 4 жыл бұрын
Great video. After watching your videos you have inspired me to make my own KZbin videos I feel I am finally ready to do so. Thanks
@jpd8
@jpd8 3 жыл бұрын
Kyle your an awesome guy. You explain things thoroughly and clearly. Your pacing is perfect and the visuals you use are informative and easy to read. Keep being awesome man.
@_wadewilson_
@_wadewilson_ Жыл бұрын
Hey Kyle just wanted to say thanks for these lovely tutorials
@andrewberrio7374
@andrewberrio7374 2 жыл бұрын
function addGlobalListener(type, selector, callback){ document.addEventListener(type, e => { if(e.target.matches(selector))callback(e) }) }
@paymankhayree8552
@paymankhayree8552 2 жыл бұрын
Another workaround would be to add a parent div to those divs and listen for the events on that parent div
@kingwoodbudo
@kingwoodbudo 4 жыл бұрын
This was great. Kind of spooky at the same time as I've been working on a project at work this last week involving bubbling and how to get the tool tips to only show up for the element I've on, not the parent. Lots of other good info that I plan on using. Thank you very much!
@chowadagod
@chowadagod 4 жыл бұрын
Thanks man ..I literally suck at Javascript this is a life saver
@TheCodingOdyssey
@TheCodingOdyssey 4 жыл бұрын
You don't suck! You are just still learning.
@wilsonemmanuel1352
@wilsonemmanuel1352 Жыл бұрын
Best JavaScript explanation so far 😊
@satyampandey5584
@satyampandey5584 3 жыл бұрын
Wow! I learnt so many things from this single video.
@H7forReal
@H7forReal Жыл бұрын
best tutorial video about event listeners no doubt mane good job!
@florianhoffmann8127
@florianhoffmann8127 3 жыл бұрын
Thank you so much. Event delegation is a blessing.
@botirbaev
@botirbaev 4 жыл бұрын
I would also mention how to trigger custom events: const someElement = document.querySelector( '#some-element' ); someElement.dispatchEvent(new CustomEvent( 'myEvent', { 'detail': { customValue: "test" } } ) ); someElement.addEventListener( 'myEvent', e => { console.log( e.detail.customValue ) } ); // test I personally use this in angular projects, when there is a js code in assets folder and I need to perform some actions inside ts code (component) depending on js code
@ramanansivagnanam4285
@ramanansivagnanam4285 4 жыл бұрын
Yes some enterprise applications it will be useful to have custom events based on component data manipulation 💥
@anaisrevellat5692
@anaisrevellat5692 3 жыл бұрын
Thanks to you I clearly understand now how it really works, moreover now to help me to remember this story about capturing and bubbling, I help myself to remember it with the simple analogy with a sandglass x)
@y-yyy
@y-yyy 2 жыл бұрын
So clear, pleasant to listen to and to the point. You're a legend, thank you!
@nightfire777
@nightfire777 3 жыл бұрын
I'm watching all your videos now, great
@sandman3983
@sandman3983 Жыл бұрын
8:07 intrusive thoughts took over the typing lol
5 Must Know JavaScript Features That Almost Nobody Knows
18:06
Web Dev Simplified
Рет қаралды 477 М.
Learn DOM Manipulation In 18 Minutes
18:37
Web Dev Simplified
Рет қаралды 1 МЛН
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 8 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
Learn JavaScript MOUSE EVENTS in 10 minutes! 🖱
10:30
Bro Code
Рет қаралды 49 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Event Handlers vs Event Listeners in JavaScript 👨‍💻💯
4:58
Learn Every CSS Selector In 20 Minutes
19:38
Web Dev Simplified
Рет қаралды 459 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 488 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
20 Programming Projects That Will Make You A God At Coding
14:27
The Coding Sloth
Рет қаралды 1,4 МЛН
This Folder Structure Makes Me 100% More Productive
24:36
Web Dev Simplified
Рет қаралды 95 М.
Learn JavaScript KEY EVENTS in 10+ minutes! ⌨
11:16
Bro Code
Рет қаралды 27 М.