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

Immediately Invoked Function Expression in JavaScript (Hindi)

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ค. 2018
  • Immediately Invoked Function Expression in JavaScript
    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 :)
    ___________________________________________________________

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

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

    Unlike other youtubers, LIKE SHARE SUBSCRIBE !! 10 times ni kaha hai....
    Jitni jarurat Utna hi bola hai, This is so damn good!!
    SUBSCRIBED!!!
    HAPPILY SUBSSCRIBED!!!

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

    You deserve more subscriber

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

    Thanks bro..............it is really helpful

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

    great work go ahead!

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

    Great job sir jee I am big fan of yours.

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

    Nice video bro

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

    Best series of javascript thank you sir 😊

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

    Thank You Sir

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

    hi sir ...in this above example if I use a=10 inside iife function, it is creating global scope which is the complement to point number which u said ... please give the reason for it.

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

    Perfect explanation for me

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

    Amazing explanation :) thanks bro thanks!

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

    Amazing work.... please upload Angular vdos.

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

    great
    explanation

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

    i love that sound of birds in video

  • @shyambhattarai977
    @shyambhattarai977 8 หลายเดือนก่อน

    immediately invoked function expression



    (function(){document.write("This is immediately invoked function expression")})();

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

    Because of lexical scoping you even can't access varibal's declared in a function .than what iife dose more than that beside that it can call it self

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

    if I write var a=30 what will it give?Will it override by the passed arguments or just stay by the var a?

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

    I understand what Immediately invoked function are but didn't understand where can we them? Can you please explain where to use them?

  • @RV-nj7fg
    @RV-nj7fg 4 ปีที่แล้ว

    we can also use arrow fun as iife

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

    Educational Channel pe Educational Ads aa Rahe hain Jaise Node.js and Udemy ke courses

  • @bmw-fe9ox
    @bmw-fe9ox ปีที่แล้ว

    Please make a video of this keyword

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

    Osm.

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

    //we canont use global varibale in this IIFE function.
    // global varibale example
    // "i" is global varibale, we can use it in Inside the function, Outside the function another function.
    var i = "I am global variable";
    (function(){
    var a = 10;
    document.write(i + "");
    document.write(a + " " + i + " " + "Inside the function...!!" + "");
    })();


    mene aapaka core JAVAscript or ADvance javascript ka pack kharida he.
    aapane to kaha tha ki IIFE function me global varible nahi chalata, ye kya chal raha he mere example me.
    aap aapke tutorials me ye bhi dikhaya karo ke kese nahi chalata ekhada code insert karane par.
    jese isame mene dikhaya he global chal raha he, waise dikho ke enter karane par nahi chalata, for an examples.

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

    In normal function also we can't access that variable as outside

    • @nik-ys8ki
      @nik-ys8ki 4 ปีที่แล้ว

      yes you are right we cant access that variable . i think this is just used for immediate working of block of code and reducing the number of code lines . also stucked here with these types of doubts.

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

    @😂😂😂😂😂😂😂😂😂 4:11 Hanikarak ho skta hai....

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

    Sir to fir faida Kya hua iska...is function k ander Jo codes likhe hain agar usko hum normal hi likh de...tab bhi to bat wahi hui

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

      Normal Function ko call karne ki jarurt paregi agar uske andar k code ko execute karwana hai but ye self executing function hai..... ek simple example se samjhiye mujhe 2 numbers ko add karna hai isko global variable bana kar kar sakte hai without any function bt isse global variable banega jo aage ja kar name conflicts kar sakta hai.... ab ek normal function bana kar v kar sakte hai isme variable to local banega but code execution k liye iss function ko call karna parega... lekin wahi agar IIFE use kare to local variable v rahega or saath me isko call v nai karna hoga becoz ye self call hai teeno me se best approach kon sa hai ? obviously IIFE isnt it ? ye ek simple example hai but when you handle projects u will learn how handy this function is.

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

      @@geekyshows right sir... thanks

    • @Abby-hu7vl
      @Abby-hu7vl 2 ปีที่แล้ว

      @@geekyshows Hatts off Sirjee got your point

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

    how to reuse iife function

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

    How to use return in iife

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

      LOL ^_^ Good one!

  • @arunsaklani9890
    @arunsaklani9890 10 หลายเดือนก่อน

    Sir apne last m function call to kiya h ()

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

    not complement,contradictory