call, apply and bind methods| Method Borrowing | Modern Javascript 2021

Sdílet
Vložit
  • čas přidán 26. 08. 2021
  • call, apply and bind are predefined methods in javascript and its very using to handle this keyword .
    this keyword work quiet differently in javascript as compared to other object oriented language and that creates confusion for the programmers.
    Function borrowing allows us to use the methods of one object on a different object without having to make a copy of that method and maintain it in two separate places. It is accomplished through the use of .call(), .apply(), or .bind(), all of which exist to explicitly set this on the method we are borrowing.
    There are many benefits to method borrowing:
    It prevents the unnecessary duplication of code.
    It allows the user to use methods of different objects without inheriting.
    Using method borrowing prevents the replication of methods in multiple object blocks and saves time.
    call, apply and bind method is just to implement method borrowing, where we can use explicitly specify what this should reference within the calling function.
    In this video, I have explained how you should write your functions so that you can optimised your code and can clear the coding round during your interview.
    Support my channel so that I can reach to wider audience. Please share it in your network 🙏
    Connect with me on social platform:
    Facebook: / angularjs4beginners
    LinkedIn: / nisha-singla-82407aa0
    Instagram : / passion4code
    For more such interesting videos, please subscribe to my channel and stay connected.
    #javascript #NishaSingla #callapplybind

Komentáře • 60

  • @BurritoBrooks
    @BurritoBrooks Před 2 měsíci

    Wow! Really clear and thorough explanation!

  • @yandlurinirosha-lt9jg
    @yandlurinirosha-lt9jg Před 8 měsíci

    I can't explain in words how well you have explained. you are really great

  • @neerajagrawal709
    @neerajagrawal709 Před rokem

    Very well explained Nisha 👍

  • @sarfraznawaz7248
    @sarfraznawaz7248 Před rokem

    Been trying really hard to wrap my head around these three methods; finally, a video that made sense and I understood them. Greetings from Pakistan.

  • @darshangowda3784
    @darshangowda3784 Před 2 lety

    Wonderfully explained!!! I have tried to understand call, apply and bind by reading many blogs and many websites. But in just 23min video you explained it clearly. Thank you

  • @ashishnayak2666
    @ashishnayak2666 Před 2 lety +1

    Nice explanation Nisha 👍

  • @buntysingh244
    @buntysingh244 Před rokem

    Wow👍👍

  • @logeesh2009
    @logeesh2009 Před 2 lety

    Call apply and bind i wanted to know. Luckily i got your video. Really helpful thanks.

  • @mr.abu-baker8bp460
    @mr.abu-baker8bp460 Před rokem

    Clear and to the point (Top level Teaching) :)

  • @nanasarathi
    @nanasarathi Před rokem +1

    Very well explained 👍

  • @akiratoriyama1320
    @akiratoriyama1320 Před 2 lety +2

    Excellent explaining!!! Deep content as always!! Thanks you very much for your effort!!!

  • @patelhetal2232
    @patelhetal2232 Před rokem

    Nice explanation 👌

  • @manoharanadimoolam3074

    Very good lesson

  • @rahulhasani9404
    @rahulhasani9404 Před 2 lety +1

    Hi Nisha,
    No one gave so much clearity between the differences of these methods like you did with examples.
    Much appreciated .
    Kudos !!

    • @NishaSingla
      @NishaSingla  Před 2 lety

      Glad to know Rahul it helped.. keep learning 🙏😊

  • @dashrathnaik8283
    @dashrathnaik8283 Před rokem

    Excellent explanation. Thank you so much for explaining the very deep concepts of javascript Nisha. It is really easy to understand the concepts when you are explaining. I recommend everyone who is learning javascript to watch all of his videos.

  • @knowledgepower5192
    @knowledgepower5192 Před 2 lety +1

    great explanation kepit up

  • @jayeshgite9058
    @jayeshgite9058 Před 2 lety +1

    Appreciate the way you explain the concepts , Grateful 🙏

  • @kishorphawade6198
    @kishorphawade6198 Před 2 lety +2

    Thank you for this,great explained

  • @chandrasekhar-ki3yr
    @chandrasekhar-ki3yr Před 2 lety +1

    Nice explanation

    • @NishaSingla
      @NishaSingla  Před 2 lety

      👍🏻👍🏻😀😀

    • @chandrasekhar-ki3yr
      @chandrasekhar-ki3yr Před 2 lety +1

      Hi Mam,
      I have a doubt. We can access the methods inside an object by objectname.method() right, then why need of this call, apply bind?

  • @ZahidHussain-pr4hg
    @ZahidHussain-pr4hg Před 8 měsíci

    Very nicely and clearly explain this concept
    Thank you very much
    Is there any plan for basic Javascript?

  • @vaibhavsarode2426
    @vaibhavsarode2426 Před 2 lety +2

    Osm Explanation , Thnk you so much

  • @rajeshkolluri448
    @rajeshkolluri448 Před 2 lety +1

    Thanks for your clean and clear explanation

  • @chilakalauttejuttej4891
    @chilakalauttejuttej4891 Před 2 lety +1

    Super madam please keep vedios countinsuly madam. 🙏🙏

  • @shubhamm3478
    @shubhamm3478 Před 2 lety +1

    Loved this js series ❣️

  • @akifcankara2225
    @akifcankara2225 Před 2 lety

    comma seperated syntax worked for me even I use apply

  • @venkat3261
    @venkat3261 Před 2 lety +1

    Perfect teaching
    Thanks

  • @snehasingla
    @snehasingla Před 2 lety +2

    Nice explanation 👍

  • @ashutoshankur7105
    @ashutoshankur7105 Před 2 lety +3

    Great explanation Nisha, just a suggestion you can create a part 2 for this tutorial and cover more examples of how "this" works weird in js like in case of closure (you have actually covered here but a practice with few more examples would be good).

    • @NishaSingla
      @NishaSingla  Před 2 lety +2

      Thanks 😊
      Appreciate your suggestions… I have plan to make video on closure soon, there will talk more on this 🙏😃

    • @ashwanikumar183
      @ashwanikumar183 Před 2 lety

      @@NishaSingla will be waiting eagerly when you upload new closure video

  • @ashwanikumar183
    @ashwanikumar183 Před 2 lety +1

    Amazing content.
    Happy Diwali 🪔🪔

  • @Fullstackdev-
    @Fullstackdev- Před rokem

    thank you

  • @viraag955
    @viraag955 Před 6 měsíci

    Thx nisha

  • @rahulshah7861
    @rahulshah7861 Před 2 lety +1

    Nice explanation ma'am 👍

  • @prabhanjandeshpande6230

    Hello Nisha please make a video on data structures and algorithms

  • @bishwajeetpandey1570
    @bishwajeetpandey1570 Před rokem

    Mam please make a detailed video on this keyword with interview questions

  • @obnoxiousguyhd488
    @obnoxiousguyhd488 Před rokem

    please make videos for polyfills

  • @santhoshmamidi5214
    @santhoshmamidi5214 Před 2 lety +1

    Hi Nisha,
    Great Explaination, Really appreciated the way you explained. Can you please do a video on closure and on oops concepts?
    Thanks in Advance

  • @Raghavshahiofficial
    @Raghavshahiofficial Před rokem

    At 21:21 minute, why the bind function called twice, Even though, we have clicked once.

  • @prashant6971
    @prashant6971 Před 10 měsíci

    You explain the concept with eaz...

  • @sagarnanavare9802
    @sagarnanavare9802 Před rokem

    hi mam i want to full course of javascript
    is this course available on udemy

  • @kotireddy419
    @kotireddy419 Před 2 lety

    How to say call, apply and bind in interview point ?

  • @venkat7667
    @venkat7667 Před 2 lety

    Not I got clarity on these topics

  • @ashishnayak2666
    @ashishnayak2666 Před 2 lety +1

    now a days you are not uploading any videos in to your channel

  • @priyalagrawal6680
    @priyalagrawal6680 Před rokem

    Well explained Nisha 👍