Event Handlers vs Event Listeners in JavaScript 👨‍💻💯

  Рет қаралды 62,084

Patrick Pan

Patrick Pan

3 жыл бұрын

Пікірлер: 52
@rocdiva530
@rocdiva530 5 ай бұрын
I’m new to JavaScript and I kept hearing my teacher talk about event handler, event listener and I couldn’t decipher one from the other. This video is just what I needed. THANK YOU!
@Ifeomaa
@Ifeomaa 6 ай бұрын
Short and straight to the point, learnt helpful tips
@Jaycoda10
@Jaycoda10 Жыл бұрын
brilliant just what I was looking for, simple and straight to the point, boom!
@kaanergunlu7836
@kaanergunlu7836 Жыл бұрын
Well explained with clear examples, appreciated!
@bigshuff
@bigshuff 11 ай бұрын
Thank you for making this subject so easy to understand, I am so glad I persevered with my search and found you.
@therealspaceman3447
@therealspaceman3447 9 ай бұрын
This was a very useful video for me. I had previously wrapped button and such with divs to support two events at once. No more. Thank you.
@darrienjohnson9053
@darrienjohnson9053 2 жыл бұрын
Thanks. This was simple and easy to understand appreciate it bro
@edwinlimo5354
@edwinlimo5354 Жыл бұрын
Great Patrick, your explanations are easy to understand
@sahanatelasng8812
@sahanatelasng8812 Жыл бұрын
Really this video gave me a solution for my problem .... U are the best ... U solved it within few seconds .... In easy way..
@bluin666
@bluin666 2 жыл бұрын
thx. that was pretty easy to understand
@essenzoffiziell8421
@essenzoffiziell8421 8 ай бұрын
thank you for your video... God Bless You with The Best All Things
@yuriinadilnyi3029
@yuriinadilnyi3029 Жыл бұрын
I'd like to add that using EventListener allows you to add additional options if it's needed, cuz Im not sure if handlers do the same staff
@sip6963
@sip6963 2 жыл бұрын
Great video! Solved my doubt of 2hrs research. Kudos!
@hajimeippo804
@hajimeippo804 3 жыл бұрын
thank you ..this is the best explanation about difference between handler and listener. .I was confused about them very much. ....Subscribed 👍
@djfago6240
@djfago6240 Жыл бұрын
Brilliant explanation. Thank you bro
@marky1756
@marky1756 2 жыл бұрын
Now I understand. Thanks a lot.👍
@Zen-lz1hc
@Zen-lz1hc 2 жыл бұрын
Like Thanks for the clear explication.
@aamir067
@aamir067 Жыл бұрын
thanks buddy. you really solved my confusion about event handler and listener.
@saravananarumugam1702
@saravananarumugam1702 Ай бұрын
Thanks for explaining ❤
@Prabh_cc
@Prabh_cc 8 ай бұрын
Helpful content❤❤❤, I'm glad that you are doing something useful😊
@reithmkil1168
@reithmkil1168 9 ай бұрын
Bro thank you for this video, perfect explanation
@blueberry5992
@blueberry5992 Жыл бұрын
keep up the great work
@ScottIngram
@ScottIngram 8 ай бұрын
Thank you. Very clear.
@philipparker113
@philipparker113 Жыл бұрын
Thanks. Its very clear now.
@japhethachimba174
@japhethachimba174 Жыл бұрын
Thanks for the awesome content, which theme are you using for your VSCODE bro
@sunyfilip
@sunyfilip 8 ай бұрын
But you need to be careful if you are assigning those listeners dynamically....if you for example open dialog with that element again and you are assigning those listeners again, you will have all your listeners runned multiple times, so don't forget to remove listeners before taking your element away :)
@carloschaves8892
@carloschaves8892 5 ай бұрын
Great example.
@hajimeippo804
@hajimeippo804 3 жыл бұрын
can you please make video about difference between let,const and various and when to use them?
@passionatechristianmaker
@passionatechristianmaker 10 ай бұрын
Great video, at work i hear these terms all the time but didn't get them initially
@anarosol6133
@anarosol6133 9 ай бұрын
Thank you!!
@yabool2001
@yabool2001 6 ай бұрын
Nice job.
@GLHD-tl2hl
@GLHD-tl2hl 2 ай бұрын
mind asking what font is this??... Too cool
@user-ig1tf5bx2e
@user-ig1tf5bx2e 2 жыл бұрын
Thank you
@yousef7885
@yousef7885 2 жыл бұрын
thank you very much
@jackmandu
@jackmandu 2 жыл бұрын
Is there a preference of which to use if you need to have multiple objects all call the same function? For example I need to have several form fields concatenated into a single field. Also, is there anything special that needs to be done with addEventListener depending on the type of input field, such as radio button vs. text vs. select field?
@jackmandu
@jackmandu 9 ай бұрын
The solution I used was to use the generally least preferred option, which is in-line HTML event handler where you can have multiple functions separated by semi-colons, such as onchange=“func1();func2()”.
@kolis_lady
@kolis_lady 6 ай бұрын
How do you click once & comment 3 different lines at the same time? I'm also just learning a lot of shortcuts in the IDE
@jarawinpromsawat
@jarawinpromsawat 3 жыл бұрын
เทพจัดพี่
@chigurupati_s
@chigurupati_s 9 ай бұрын
Super bro
@offgridvince
@offgridvince Жыл бұрын
Thanks
@Escko
@Escko 8 ай бұрын
thank you
@JoanManuelSB
@JoanManuelSB 8 ай бұрын
nice
@akashanand2656
@akashanand2656 7 ай бұрын
What if I use handler and listener at the same time?
@mahtabvariyani
@mahtabvariyani Жыл бұрын
thanks
@AnilKumar-jx1hk
@AnilKumar-jx1hk 9 ай бұрын
nice moustache btw
@ravisankar9122
@ravisankar9122 2 ай бұрын
I love you
@Mohammed71793
@Mohammed71793 4 ай бұрын
why no one is appreciating his typing sound?
@nitkarshchourasia2406
@nitkarshchourasia2406 2 ай бұрын
🎯 Key Takeaways for quick navigation: 00:00 *🎶 Introduction to Event Handling in JavaScript* - Understanding the difference between event handlers and event listeners in JavaScript. - Overview of handling events using event handlers and event listeners. 00:30 *🖱️ Event Handlers in JavaScript* - Event handlers are properties of objects used to handle events. - Demonstrating event handling with an example of using the `onclick` event handler. - Limitation of event handlers: only one event handler for a specific event type. 01:51 *🔊 Event Listeners in JavaScript* - Event listeners are assigned to objects to listen for events and execute code accordingly. - Example of using the `addEventListener` method to handle click events. - Advantage of event listeners: ability to add multiple listeners for the same event. 03:41 *🔃 Comparison: Event Handlers vs. Event Listeners* - Experimenting with adding multiple event handlers and event listeners to understand their behavior. - Demonstration of the difference in behavior when adding multiple handlers/listeners. - General advice: prefer event listeners over event handlers for flexibility and scalability. Made with HARPA AI
@shivinNirwanYadav
@shivinNirwanYadav Жыл бұрын
Impress why code typing
@oleksandrdemchenko482
@oleksandrdemchenko482 2 ай бұрын
+
@Anas-ri4vv
@Anas-ri4vv Жыл бұрын
Thank you
@capslock3250
@capslock3250 8 ай бұрын
Thanks
Learn JavaScript Event Listeners In 18 Minutes
18:03
Web Dev Simplified
Рет қаралды 569 М.
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 6 МЛН
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 19 МЛН
🌊Насколько Глубокий Океан ? #shorts
00:42
The Async Await Episode I Promised
12:04
Fireship
Рет қаралды 1,1 МЛН
Learn JavaScript MOUSE EVENTS in 10 minutes! 🖱
10:30
Bro Code
Рет қаралды 28 М.
Event Listeners - Javascript - Tutorial 14
13:55
Giraffe Academy
Рет қаралды 63 М.
Javascript Promises vs Async Await EXPLAINED (in 5 minutes)
5:50
Roberts Dev Talk
Рет қаралды 552 М.
Event Listeners in JavaScript | JavaScript Events Tutorial
39:32
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 457 М.
How To Make Your Own JavaScript Events
10:27
Web Dev Simplified
Рет қаралды 77 М.
8 TypeScript Tips To Expand Your Mind (and improve your code)
10:54
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 6 МЛН