Do you know the difference between target vs. currentTarget?

  Рет қаралды 6,304

Coding in Public

Coding in Public

Күн бұрын

What is the difference between target and currentTarget in JavaScript?
---------------------------------------
🎨 VSCode Theming
Font: Cascadia Code: github.com/mic...
Theme: marketplace.vi...
Icons: marketplace.vi...
---------------------------------------
🌐 Connect With Me 🌐
Website: codinginpublic...
Blog: chrispenningto...
Twitter: / cpenned
Patreon: / coding_in_public
Buy Me a Coffee: www.buymeacoff...

Пікірлер: 22
@neontuts5637
@neontuts5637 Жыл бұрын
Thanks Chris for explaining the difference with examples 🙏
@CodinginPublic
@CodinginPublic Жыл бұрын
You’re welcome!
@phucnguyen0110
@phucnguyen0110 Жыл бұрын
Awesome to see the difference being well explained, thanks, Chris!
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad it was helpful!
@livadization
@livadization 11 ай бұрын
Short, simple, with good example. Thanks a lot !
@CodinginPublic
@CodinginPublic 11 ай бұрын
Glad it was helpful!
@FromagioCristiano
@FromagioCristiano Жыл бұрын
With that example you showed at the end, I can rewrite a BIG piece of a bookmarklet I created (replace a bunch of "onclick"). Thank you!
@CodinginPublic
@CodinginPublic Жыл бұрын
That's a great idea!
@tomaszgasecki
@tomaszgasecki Жыл бұрын
That was exactly what I was looking for. Thanks!
@CodinginPublic
@CodinginPublic Жыл бұрын
Sure thing! Glad it was a help!
@FilledStacks
@FilledStacks Жыл бұрын
I wish Had console ninja for Flutter. Awesome video, very useful.
@CodinginPublic
@CodinginPublic Жыл бұрын
Console ninja is 🔥
@lvekua
@lvekua Жыл бұрын
Awesome explanation. Thank you Cris!
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad it was helpful! :)
@fab1o978
@fab1o978 Жыл бұрын
Very useful, thanks!
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad it was helpful!
@casull6447
@casull6447 Жыл бұрын
great video thank you sir !
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad it was a help!
@ob5804
@ob5804 Жыл бұрын
Very good explanation for me, Thank You!👍 And can I ask you for help. I have a javascript code (I didn't write it), I want to show it to you and ask something about it?
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad it was helpful!
@barbapapazes
@barbapapazes Жыл бұрын
Who so interesting! Thanks!
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad you enjoyed it!
JavaScript Event Bubbling and Capturing MADE SIMPLE!
15:53
The Code Creative
Рет қаралды 6 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
JS is more powerful than you remember
10:58
Coding in Public
Рет қаралды 19 М.
Astro Server Island Example: YouTube Videos
12:44
Coding in Public
Рет қаралды 6 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
Learn JavaScript DOM Traversal In 15 Minutes
14:44
Web Dev Simplified
Рет қаралды 231 М.
EVENT.TARGET, in JavaScript, Simplified
7:54
Deeecode The Web
Рет қаралды 26 М.
Class Variance Authority (CVA) Quickstart
20:54
Coding in Public
Рет қаралды 15 М.
I am not sorry for switching to C
11:34
Sheafification of G
Рет қаралды 238 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Learn DOM Manipulation In 18 Minutes
18:37
Web Dev Simplified
Рет қаралды 1 МЛН
Learn Event Delegation In 10 Minutes
9:57
Web Dev Simplified
Рет қаралды 67 М.