A Complete Overview of JavaScript Events - All You Need To Know

preview_player
Показать описание
In today's video I'll be taking you through the basics of JavaScript events and how you can use them to make your websites or apps more interactive. Events are a core JavaScript feature that all web developers should be comfortable with.

We'll cover four main topics: inline event handlers, the "addEventListener" function, event objects and lastly, the difference between standard and arrow functions when it comes to events.

0:00 What are Events?
1:48 Inline Event Handlers
5:02 addEventListener Function
8:37 Event Objects
12:27 Standard vs. Arrow Functions

Support me on Patreon:

For your reference, check this out:

Follow me on Twitter @dcodeyt!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

#dcode #javascript
Рекомендации по теме
Комментарии
Автор

*RELATED VIDEO: 5 POWERFUL JAVASCRIPT EVENTS*

🏷 *THE ULTIMATE JAVASCRIPT DOM CRASH COURSE* 👇

dcode-software
Автор

This teacher give you real world examples from the start of the video! Thank you.

lastspoil
Автор

Please continue this JavaScript series, really helpful!

shariafarooqui
Автор

You deserve more views! I learn a lot watching your videos

beinyourguard
Автор

If anyone is curious, to access the boxDiv DOM Object using the arrow function, you can get it from the event object target property (e.target)

thisisnotjoshiswear
Автор

wow! very detailed and easy explanation. Thanks!! 💜💜

codingSparrow
Автор

Hi dcode. Thank you for sharing your knowledge and clarifying about the event object !! Helps me a lot!

chickenpotthighs
Автор

Great introduction video to events! really appreciate the effort you put into this!

alistairtrotter
Автор

Indeed you are the best JS tutor Brother...Kudos

parthasarathimoharana
Автор

Thank you so much! Make more on Events of js please ❤❤

this_is_joydip
Автор

Great video as ever thanks! Always well explained and very informative. Have you got a video on how to fire a functions on different events for example if I wanted to fire off a function on either, click, keyup or keydown with only one event listener rather than three? Thanks again.

photoinshot
Автор

Thank you so much for explaining so well.

peterwafula
Автор

Thank you soo much for this video, it helped me a lot to understand that (e) heheh. i always used to be confused but now no more confusion. thanks a lot once again. 😄

sejalsankhe
Автор

I found the explanation of event object really useful.

Marjolein_
Автор

thx very helpful video! made it easy to understand what the 'e' or event object is since i was seeing it a lot when learning javascript :D

jedt
Автор

I must admit that I repeated the video several times when dcode pronounce "MouseEvent" 10:36 and says "Notice how it says mouse events" must be the coolest thing I heard this week :)
Finally a great explanation about the event objects, the "e" or "ev" or "event" always got me confused. Now I am completely enlightened. My question is that isn't the "this" keyword supposed to act like a method under the object and refer to the object or act like a standard function and refer to the window or global. Really didn't get how it referred "boxDiv". Also, the difference of standard and arrow functions when used with "this" keyword. I was thinking both types of functions are supposed to be acting equal 100%. Probably I need to dig more.

mcrmehmet
Автор

Thank you for helping me understand this.

smitty
Автор

Gracias por el video! A veces se necesita que alguien lo explique de una manera diferente para entender los conceptos

adriansweg
Автор

Thank you. It's was helpful for me😊

lyza
Автор

Sir come with an E-commerce shop with features filters, product details page, sorting products etc. Using only JS and firebase. ?

MuhammadAdnan.