Immediately Invoked Function Expression in JavaScript (Hindi)

Поделиться
HTML-код
  • Опубликовано: 11 янв 2025

Комментарии • 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 2 года назад

    Great job sir jee I am big fan of yours.

  • @nidhiparmar5835
    @nidhiparmar5835 3 года назад

    Best series of javascript thank you sir 😊

  • @hemantkumar1072
    @hemantkumar1072 2 года назад

    great
    explanation

  • @TecStudyAP
    @TecStudyAP 6 лет назад +3

    Nice video bro

  • @atulcodex7730
    @atulcodex7730 6 лет назад

    Amazing explanation :) thanks bro thanks!

  • @ektachauhan160
    @ektachauhan160 4 года назад

    Amazing work.... please upload Angular vdos.

  • @asadji2189
    @asadji2189 4 года назад

    Perfect explanation for me

  • @iamdanyaal
    @iamdanyaal 3 года назад

    Thank You Sir

  • @arunkumarkambar6735
    @arunkumarkambar6735 6 лет назад +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.

  • @creativity6495
    @creativity6495 5 лет назад +1

    i love that sound of birds in video

  • @milanpoudel3737
    @milanpoudel3737 5 лет назад

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

  • @aakashkumar9961
    @aakashkumar9961 3 года назад

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

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

  • @raheelsiddique1631
    @raheelsiddique1631 4 года назад

    Osm.

  • @RV-nj7fg
    @RV-nj7fg 5 лет назад

    we can also use arrow fun as iife

  • @shyambhattarai977
    @shyambhattarai977 Год назад

    immediately invoked function expression



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

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

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

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

  • @abd11868
    @abd11868 6 лет назад +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  6 лет назад +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 6 лет назад

      @@geekyshows right sir... thanks

    • @Abby-hu7vl
      @Abby-hu7vl 3 года назад

      @@geekyshows Hatts off Sirjee got your point

  • @MrNigam1992
    @MrNigam1992 5 лет назад

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

    • @nik-ys8ki
      @nik-ys8ki 5 лет назад

      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.

  • @sakaldeepyadav7126
    @sakaldeepyadav7126 4 года назад

    how to reuse iife function

  • @thephenom8795
    @thephenom8795 5 лет назад

    How to use return in iife

    • @disha9876
      @disha9876 5 лет назад +1

      LOL ^_^ Good one!

  • @arunsaklani9890
    @arunsaklani9890 Год назад

    Sir apne last m function call to kiya h ()

  • @arunkumarkambar6735
    @arunkumarkambar6735 6 лет назад +1

    not complement,contradictory