How To Make Your Own JavaScript Events

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 57

  • @christopherholt3782
    @christopherholt3782 2 роки тому +23

    Been watching you for years now. You're such a good instructor, I attribute a lot of my knowledge to you, thank you so much!

  • @andianwar5784
    @andianwar5784 2 роки тому +2

    Thanks for speaking clearly, as an Indonesian which i dont speak native english, your video is really helpful, thank you

  • @banegool
    @banegool 2 роки тому +10

    Thanks!

  • @c__beck
    @c__beck 2 роки тому +31

    Will there be a follow-up video about using events in Node,js?

    • @Johnny-rf4iu
      @Johnny-rf4iu 2 роки тому +4

      +1

    • @hpgildwel
      @hpgildwel 2 роки тому +3

      NodeJS events are well documented if you can't wait

  • @kakakakaka7955
    @kakakakaka7955 Рік тому +2

    For the use cases I would add a situation when you want to integrate React UI and a game engine. Using custom events you can make the game engine and React UI communicate and share data between each other.

  • @ugljesavojvodic3384
    @ugljesavojvodic3384 2 роки тому +3

    Nice video 👍 I like that you cover subjects like this (rare subjects). Others have videos that are mostly same and similar with other youtubers.

  • @ZacharyBetz
    @ZacharyBetz 11 місяців тому

    I’ve been doing web dev for years and just learned about custom events. Thank you for sharing 💪

  • @infinitepurelive
    @infinitepurelive 2 роки тому +2

    dude your content is always just awesome, I can't wait to use this in a project

  • @LePhenixGD
    @LePhenixGD 11 місяців тому

    Using custom events in conjunction with web components is the cream of the top!

  • @astec9051
    @astec9051 Рік тому

    U are legit the best JS youtuber ever, keep doing your content because u are just the definition of perfect !

  • @duran_codes
    @duran_codes Рік тому

    I don't know where you work but they are lucky to have you.

  • @smtp_yurzx
    @smtp_yurzx 2 роки тому +1

    You should make a tutorial on how you keep your hair looking so good!

  • @sriramiyer9840
    @sriramiyer9840 2 роки тому +1

    Do a follow-up video on how to do this with typescript's types please

  • @ChrisAthanas
    @ChrisAthanas 2 роки тому

    Such a clear explanation. Kudos.

  • @Marcosmapf
    @Marcosmapf 2 роки тому +1

    when would a composed event be more useful than a postMessage api call?

  • @montebont
    @montebont Рік тому

    Nice one - thanks. But I wonder about the use case. I think you mentioned decoupling different parts of an app which makes sense.
    But wouldn't a simple PUB/SUB mechanism (essentially a MAP where the key is the event "name" and the value is an array of handlers) be more efficient?

  • @Primadex
    @Primadex Рік тому

    Weldone boss, pls can you make a video on how to set isTrusted=true

  • @stoneshou
    @stoneshou 2 роки тому

    Please do some explanation on shadow DOM!

  • @stoncjoesperanto8632
    @stoncjoesperanto8632 2 роки тому +3

    Hard to read, text is too small (whereas there's a lot of empty room in the screen)... :-(

  • @TheScriptingLegend
    @TheScriptingLegend 2 роки тому +4

    Waiting for how to make your own JavaScript

  • @yoskokleng3658
    @yoskokleng3658 11 місяців тому

    Sir, How to detect closed tab browser by javascript event? not reload ( i want to do something when user try to closed tab or exist browser directly without logout my web application ). thanks 🙏

  • @navjotsingh2457
    @navjotsingh2457 2 роки тому

    Ty

  • @Mickey_McD
    @Mickey_McD 2 роки тому

    I used this in conjunction with a Promise; I had the Promise resolve when my custom event was generated.

  • @aryanjainascanio3388
    @aryanjainascanio3388 2 роки тому

    Hi, How do you upload a document publicly for everyone like you did with the 2048?

  • @be2wa
    @be2wa 2 роки тому +1

    Isn't there a native dblclick event already?

    • @Laura69
      @Laura69 2 роки тому

      It is just an example showing how it could be implemented.

  • @BGdev305
    @BGdev305 2 роки тому

    @WebDevSimplified you never showed how to "communicate between 2 different parts of the application"?

  •  2 роки тому +2

    More appropriate name would probably be 'creating DOM events'. Technically this is not connected to Javascript.

  • @mojlbhr1480
    @mojlbhr1480 2 роки тому

    Great! but the example not enough for what is the use case.

  • @Yoreni
    @Yoreni Рік тому

    can you put your own event data in the dispatch event function

  • @roshanlalsahu7846
    @roshanlalsahu7846 2 роки тому

    can u please make video on shadow DOM

  • @7heMech
    @7heMech 2 роки тому

    Is this only for the web, or it works for nodejs aswell?

  • @mznunaya
    @mznunaya 2 роки тому

    I love you Kyle

  • @rotterwane426
    @rotterwane426 2 роки тому

    Klye, would you prepare for angular tutorial

    • @MrCC-hx8xr
      @MrCC-hx8xr 2 роки тому

      learn vue or react, angular will die

  • @radezzientertainment501
    @radezzientertainment501 Рік тому

    lovely vid

  • @AbhishekGupta-zf4em
    @AbhishekGupta-zf4em 2 роки тому

    Bro you got amazing hair :)

  • @igu642
    @igu642 11 місяців тому

    ❤❤❤❤

  • @tolotrarabefaly1333
    @tolotrarabefaly1333 2 роки тому

    What about EventEmitter?

  • @SteveUrlz
    @SteveUrlz Рік тому

    no offense or anything, I was just wondering why do you misspell often. I see my CTO coding in the same style and was curious if this is dyslexia or just writing fast

  • @fraidoonhu9284
    @fraidoonhu9284 2 роки тому

    Great

  • @charlesscholton5252
    @charlesscholton5252 5 місяців тому

    Not seeing the ; at the end of lines and the reliance upon ASI is sort of traumatic for me. Lol

  • @thesneakyturtel
    @thesneakyturtel 2 роки тому

    :thumbsup:

  • @JEsterCW
    @JEsterCW 2 роки тому

    Sheeeesh

  • @zainou8460
    @zainou8460 2 роки тому

    Why would someone need a custom event ?

    • @Shushishtok
      @Shushishtok 2 роки тому

      There might be something that you want events to trigger for that aren't covered in JS's built in events. It really depends on what you need to do for your project. The possibilities are endless.

  • @coldcoder23
    @coldcoder23 10 місяців тому

    The sound is too low man

  • @anandpawar2096
    @anandpawar2096 2 роки тому

    100 like

  • @Nick-dt7ut
    @Nick-dt7ut 2 роки тому

    Second comment

  • @mehrdad1068
    @mehrdad1068 2 роки тому

    Please make tutorial for
    like_unlike_dislike_undislike_comment_share_replay_save_unsave
    🙏🙏🌱🌻

  • @StellarWeb008
    @StellarWeb008 2 роки тому

    276th viewer

  • @suelingsusu1339
    @suelingsusu1339 2 роки тому

    👏👏👏👏🙏🙏🙏🙏🙏👌👌👌👌👌🖖🖖🖖🖖🖖🖖🖖

  • @sarrthecode
    @sarrthecode 2 роки тому +1

    First comment

  • @CodeAProgram
    @CodeAProgram 2 роки тому

    Learn new