ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Returning Anonymous Function in JavaScript (Hindi)

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ค. 2018
  • Returning Anonymous Function
    You can find out our HTML Complete Video tutorials :
    goo.gl/O254f9
    CSS Complete Video Tutorial Playlist:
    goo.gl/On2Bh1
    Feel free to share this video
    JavaScript Complete Video Tutorial Playlist
    goo.gl/A517jQ
    Check Out Our Other Playlists:
    / geekyshow1
    SUBSCRIBE to Learn Programming Language !
    goo.gl/glkZMr
    Learn more about subject:
    www.geekyshows....
    __________________________________________________________
    If you found this video valuable, give it a like.
    If you know someone who needs to see it, share it.
    If you have questions ask below in comment section.
    Add it to a playlist if you want to watch it later.
    ___________________________________________________________
    T A L K W I T H M E !
    Business Email: contact@geekyshows.com
    TH-cam Channel: / geekyshow1
    Facebook: / geekyshow
    Twitter: / geekyshow1
    Google Plus: plus.google.co...
    Website: www.geekyshows....
    ___________________________________________________________
    Make sure you LIKE, SUBSCRIBE, COMMENT, and REQUEST A VIDEO :)
    ___________________________________________________________

ความคิดเห็น • 34

  • @deepanshugoel2636
    @deepanshugoel2636 2 ปีที่แล้ว +3

    Bhaiya please aap DSA ki bhi playlist bnao n aap bhot acha pdhate ho 🔥🔥 you are really such a very great teacher bro aur mughe apka pdhaya hua bhot ache se smj aata hh

  • @afairywithdemonwings
    @afairywithdemonwings ปีที่แล้ว +3

    Advance Tip: We can also write,
    var sum = disp(10)(20);
    document.write(sum);
    This is known as Function Currying.

  • @prafulcharde2871
    @prafulcharde2871 ปีที่แล้ว

    Thank you
    Pls make DSA play list

  • @_RahulDalvi
    @_RahulDalvi 7 หลายเดือนก่อน +1

    ✅✅✅

  • @Atulkumar-xs9rv
    @Atulkumar-xs9rv 5 ปีที่แล้ว +2

    thnku thnku thnku......

  • @aryankhandelwal15
    @aryankhandelwal15 2 ปีที่แล้ว

    are bhai 👏🏼👏🏼

  • @himanshujoshi2644
    @himanshujoshi2644 6 ปีที่แล้ว +2

    Thanks brother :)

  • @rakeshkalvakol4585
    @rakeshkalvakol4585 2 ปีที่แล้ว

    You have explained well..and in a systematic way with out huary.. my doughts get cleared

  • @iamdanyaal
    @iamdanyaal 2 ปีที่แล้ว

    Thank You Sir

  • @user-gg5nh1mf6l
    @user-gg5nh1mf6l 5 ปีที่แล้ว +1

    thanks

  • @wildturtle2416
    @wildturtle2416 3 ปีที่แล้ว

    Explained well

  • @allanimeworld2898
    @allanimeworld2898 3 ปีที่แล้ว +1

    Sir please make a complete video on regular expressions

  • @jagdishjena9058
    @jagdishjena9058 5 ปีที่แล้ว

    Thank u sir.

  • @singhsh7865
    @singhsh7865 5 ปีที่แล้ว

    awesome

  • @sanisan5787
    @sanisan5787 5 ปีที่แล้ว +2

    Wen u hv given disp as the function name..then how can it b anonymous function??

    • @geekyshows
      @geekyshows  5 ปีที่แล้ว +2

      The answer which i replied in another thread, applies here also You are trying to mix normal function with anonymous function while writing both in a program. Its just matter of how you look at the code, separate your concepts and you are good to go.

    • @farooqwahab8056
      @farooqwahab8056 4 ปีที่แล้ว +1

      disp() function is not an anonymous function. however what it returns is a function without any name, or returns an anonymous function.
      in case we do not want the return as the whole anonymous function, and we r interested in getting the result of its body, then we r unable to get the result as we cannot call an anonymous function ( with no name). therefore first we have to store it in a variable, say
      var=af; and then call the anonymous function with the help of function expression .
      af(20); note 20 is the argument for the anonymous parameter b.

  • @ooybus925
    @ooybus925 4 ปีที่แล้ว +2

    Sir insab ka web development se kya lena dena.

  • @codeblessyou9407
    @codeblessyou9407 3 ปีที่แล้ว

    Which book is best for learning js ?

  • @IrfanAliirfanmayo
    @IrfanAliirfanmayo 3 ปีที่แล้ว +1

    var af = (disp(10));
    or
    var af = disp(10);
    what's the diffrence in both.
    Both are working fine can you tell me about it thanks..

    • @anitgahlot5749
      @anitgahlot5749 2 ปีที่แล้ว +1

      it's like a value stored in a var i.e. (10) or 10 both are same.

    • @RealFunrr
      @RealFunrr ปีที่แล้ว +1

      it is optional to use (disp) we can also directly use disp.

  • @mihirverma21
    @mihirverma21 5 ปีที่แล้ว +1

    8.30 how can af(); function have value of a = 10 variable that is part of disp() function at execution time ?

    • @GauravSingh-by1xz
      @GauravSingh-by1xz 4 ปีที่แล้ว +2

      I have the same doubt .. but this is what i understood
      function trg(f){
      return function(g){
      return f+g;
      }
      }
      document.write(trg(10));
      -------------------- this will return - function(g){ return f+g; }, with f=10.
      now this returned thing is assigned to a variable.. it became a function expression and we printed the entire function expression with g=20 ..

    • @GauravSingh-by1xz
      @GauravSingh-by1xz 4 ปีที่แล้ว +1

      function(g){ return f+g; }

    • @farooqwahab8056
      @farooqwahab8056 4 ปีที่แล้ว +3

      Also we know that an inner function has access to the parameters (or arguments) of the outer function. Hence the inner anonymous function gets the value of a=10 from disp(10).

    • @upendrakumarpandit5340
      @upendrakumarpandit5340 2 ปีที่แล้ว

      It is just simple mistake during writing and speaking . Here a = 10 , and b = 20.

  • @pranavshinde9547
    @pranavshinde9547 4 ปีที่แล้ว

    what is var af = (); syntax is

  • @anilmanhar940
    @anilmanhar940 5 ปีที่แล้ว

    Iska istamal hotta hain ya nahi