Do you know the difference between target vs. currentTarget?

Тәжірибелік нұсқаулар және стиль

What is the difference between target and currentTarget in JavaScript?
---------------------------------------
🎨 VSCode Theming
- Font: Cascadia Code: github.com/microsoft/cascadia...
- Theme: marketplace.visualstudio.com/...
- Icons: marketplace.visualstudio.com/...
---------------------------------------
🌐 Connect With Me 🌐
- Website: codinginpublic.dev
- Blog: chrispennington.blog
- Twitter: / cpenned
- Patreon: / coding_in_public
- Buy Me a Coffee: www.buymeacoffee.com/chrispen...

Пікірлер: 22

  • @neontuts5637
    @neontuts5637 Жыл бұрын

    Thanks Chris for explaining the difference with examples 🙏

  • @CodinginPublic

    @CodinginPublic

    Жыл бұрын

    You’re welcome!

  • @livadization
    @livadization5 ай бұрын

    Short, simple, with good example. Thanks a lot !

  • @CodinginPublic

    @CodinginPublic

    5 ай бұрын

    Glad it was helpful!

  • @phucnguyen0110
    @phucnguyen0110 Жыл бұрын

    Awesome to see the difference being well explained, thanks, Chris!

  • @CodinginPublic

    @CodinginPublic

    Жыл бұрын

    Glad it was helpful!

  • @lvekua
    @lvekua Жыл бұрын

    Awesome explanation. Thank you Cris!

  • @CodinginPublic

    @CodinginPublic

    Жыл бұрын

    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!

  • @fab1o978
    @fab1o97810 ай бұрын

    Very useful, thanks!

  • @CodinginPublic

    @CodinginPublic

    10 ай бұрын

    Glad it was helpful!

  • @casull6447
    @casull6447 Жыл бұрын

    great video thank you sir !

  • @CodinginPublic

    @CodinginPublic

    Жыл бұрын

    Glad it was a help!

  • @barbapapazes
    @barbapapazes Жыл бұрын

    Who so interesting! Thanks!

  • @CodinginPublic

    @CodinginPublic

    Жыл бұрын

    Glad you enjoyed it!

  • @FilledStacks
    @FilledStacks Жыл бұрын

    I wish Had console ninja for Flutter. Awesome video, very useful.

  • @CodinginPublic

    @CodinginPublic

    Жыл бұрын

    Console ninja is 🔥

  • @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!

Келесі