Everything about Callback Function in Advanced JavaScript in Hindi 2020

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024
  • Welcome, CallBack Function Explained with Practical in Advanced JavaScript in Hindi. A callback is a function that is to be executed after another function has finished executing - hence the name ‘call back’.
    Any function that is passed as an argument is called a callback function.
    Why do we need Callbacks?
    For one very important reason - JavaScript is an event-driven language. This means that instead of waiting for a response before moving on, JavaScript will keep executing while listening for other events.
    Callbacks are a way to make sure a certain code doesn’t execute until another code has already finished execution.
    ➡️ Source Code Link: www.thapatechn...
    ➡️Plz show some love to My Siter RUclips Channel and Plz Subscribe Link: / @mayabeautyvlogs878
    *********** If you want to buy the best Hosting at less price. Here is Official India.ResellerClub Black Friday Sale 60% OFF Link ******************
    ➡️ If you are in India: india.reseller...
    ➡️ if you are not in India: www.resellercl...
    **************** MUST WATCH VIDEOS *****************
    ➡️ How to become a Full Stack Developer 2020: • How to become a Full S...
    ➡️ How To Become a Web Developer 2020: • How To Become a Web De...
    ➡️ Advanced JavaScript in Hindi Playlist: • Advanced JavaScript Tu...
    ➡️ How JavaScript Works: • How JavaScript Works i...
    ➡️ Advanced Border Radius: • Advanced CSS Border Ra...
    ➡️ Follow me on Instagram: / vinodthapa55
    ************ Must Watch Videos For Web Development.************
    ➡️ HTML in One Video: • Learn HTML in One Vide...
    ➡️ CSS in One video: • Learn Complete CSS In ...
    ➡️ CSS FlexBox in 30 Minutes: • CSS FlexBox in 30 Minu...
    ➡️ JavaScript in One video: • JavaScript in One Vide...
    ➡️ ECMAScript 6 in One Video : • ES5 & ES6 | ECMAScript...
    ➡️ HTML5 in one video: • HTML5 Tutorial in One ...
    ➡️ CSS3 in one video: • Learn Complete CSS3 In...
    ➡️ Bootstrap4 in One video: • Bootstrap 4 in One Vid...
    ➡️ Jquery in One video: • jQuery in One Video in...
    ➡️ JSON in one video: • JSON in One Video in H...
    ➡️ ReactJS in one video: • ReactJS For Beginners ...
    ➡️ PHP in One Video: • PHP TUTORIAL IN ONE VI...
    ➡️ NodeJS in one video: • Node.JS in One Video i...
    ➡️ MySQL in one video: • Complete SQL & MySQL i...
    Make Website Responsive Using Media Queries in One Video in Hindi | Web Design Tutorial in Hindi
    ➡️ Link: • Make Website Responsiv...
    DONATION FOR SUPPORT: PhonePay = vinodbahadur@ybl GooglePay: vbthapa55@oksbi
    Believe me, all this money will be used to make more quality videos and to make my channel grow. So that I can always provide you awesome free videos :)
    Click on the link below to watch web developer courses videos
    HTML in One Video : • Learn HTML in One Vide...
    CSS in One Video: • Learn Complete CSS In ...
    Javascript tutorial in one video: • JavaScript in One Vide...
    PHP in One Video: • PHP TUTORIAL IN ONE VI...
    DAtabase and PHP Together for read, create, update, delete: • CRUD Operation in PHP ...
    How to create a website like carbon health: • Create a Complete Resp...
    How to create a website: • Create Responsive Webs...
    ***************** Tools I used to Record Videos ****************
    1: Dell Inspiron 15 5570 2018 15.6-inch FHD Laptop (8th Gen Core i3-8130/4GB + 16GB Optane Memory/1TB/Windows 10): amzn.to/2DErOoG
    2: Wright WR 800 Condenser Microphone with Free USB Sound Card: amzn.to/2TjRUmc
    3: Wright Wp 101 Pop Filter For Dynamic Condenser Microphone Voice Recording: amzn.to/2B67lro
    4: AmazonBasics Ventilated Laptop Stand (Black): amzn.to/2DDs1Zd
    5: Generic NB-35 Professional Recording Microphone Stand: amzn.to/2HBDbC1
    6: JBL T160 in-Ear Headphones with Mic (Black): amzn.to/2HwbJp0
    7: AmazonBasics Braided HDMI Cable - 6-Feet: amzn.to/2TkCTkc
    Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.
    Don't Forget to Follow me on all Social Network,
    Website Link: www.thapatechn...
    Instagram Link: / vinodthapa55
    Facebook Link: / vinodthapa55
    Twitter Link: / vb55thapa
    Facebook ThapaTechnical Page Link: / vinodbahadur. .

Комментарии • 121

  • @codingsteps
    @codingsteps 2 года назад +6

    This way of explanation is very simple and align to the real scenario that helps us to understand properly.

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

    Callback function ke itne videos dekhe but samjh nehi aya .. But apka video dekhle ekdam clear ho geya 100% ... Thank you sir❤❤

  • @rehmatdesigns9125
    @rehmatdesigns9125 2 года назад +1

    jab kahi bhi kuch na samj aye to thapa bhai ka samjaya samj m a hi jaata hai ☺

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

    Coding sikhne ka best channel hai THAPA TECHNICAL❤️❤️

  • @muskanramchandani7642
    @muskanramchandani7642 11 месяцев назад

    Your way of explaining is very simple .

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

    Thank you bhai. Bhot video dekh lia but samaj to apki video me hi aya callback ka jhol🙏

  • @yesireact
    @yesireact 4 года назад +21

    waiting for data structures and algo with javascript

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

    Bro you are great, jio bhai 100 saal jio ek video me problem solve kar di yaar kaha the tum ab tak

  • @gmkhussain
    @gmkhussain 4 года назад +8

    function callBackFunc( callback ) {
    callback();
    }
    Function which are passed as a argument to other function and can be called callback function.
    #Great

  • @farookahmed4496
    @farookahmed4496 3 года назад +2

    Thapa Rocks... I have seen so many videos but I got it after watching your videos. your first phone example is awesome. make your content in English your content is cool.

  • @CHIKUTOONSKannada
    @CHIKUTOONSKannada 2 года назад +1

    I got my doubt cleared only after your tutorial thank you technical bhai

  • @kamleshpawar9483
    @kamleshpawar9483 4 года назад +6

    hello sir,
    I request you to explain the callback function with timer example mentioned at the beginning of the video. second example me calback use kar ke kuch achive nahi hua.

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

    thank you bhae itne acche se explain karne ke liye

  • @Anonymous-pe5pp
    @Anonymous-pe5pp 2 года назад +1

    Very clear explanation thanku.

  • @nikhilpatil8798
    @nikhilpatil8798 3 года назад +8

    I really like the way you explain things, you help me with my whole journey while I was learning web development. I will be very appreciative if I do something for you.

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

      i realize Im pretty off topic but does anyone know of a good place to watch new movies online?

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

      @Ares Hudson flixportal :)

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

      @Oscar Gordon Thanks, I went there and it seems like they got a lot of movies there :D I appreciate it !

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

      @Ares Hudson glad I could help :)

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

      @@areshudson4508 yomovies

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

    Your video really cleared my doubt , thanks

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

    best explaination of call back functn ever

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

    i was strugling with callback fun. but now i am like # ye callback fun. hai .... thnku bhai
    😂😂

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

    your way of explaining is really awesome

  • @MD-vc7oh
    @MD-vc7oh 3 года назад

    I got stuck on call back function i your video explain it soo good

  • @manish2412
    @manish2412 4 года назад +1

    Bhai boht achi trah smjh aa gya😃😃

  • @ranaashutoshashokjadhav
    @ranaashutoshashokjadhav Год назад +3

    const per1=(friend,callfrnd)=>
    {
    setTimeout(function(){console.log(`i am busy right now i am talking to ${friend}
    `)},3000);
    callfrnd();
    }
    const per2=()=>{
    console.log("this is second function");
    }
    per1("shivam",per2);
    is me call back function ne kam kyu nahi kiya,isme pehle per2() function ka output show ho rha hai, 3 sec baad me per1() function ka output aa rha hai,but according to callback function ,pehle per1() and baad me per2() execute hona chahiye na ? comment if anyone can explain
    this

  • @DEEPANSHU_NAG
    @DEEPANSHU_NAG 4 года назад +2

    Awesome bhai 👍🏻
    Congrats for 💯 k subscribers🎉🎊

  • @shantanukumar4081
    @shantanukumar4081 2 года назад +1

    You make it very simple. Thank You !!!

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

    thanks bro...your explanation is very good

  • @disneychannelstars3583
    @disneychannelstars3583 3 года назад +3

    I have a doubt ..you have not defined callfrnd function where is the definition of the function?

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

      callfrnd is working as a parameter, When perTwo()function pass to perOne as a argument function. Then callfrnd is act as a function due to perTwo() function. That's why it define as callfrnd();

  • @DipeshTambe
    @DipeshTambe 4 года назад +2

    Nice example👍

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

    maza aa gaya vai...thanks 😃

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

    really really great content brother. sending LOVE, prayer for your happy life. dil khush hua yarr

  • @ShubhamMohite-b6q
    @ShubhamMohite-b6q Год назад

    I really like your teaching method. can u please start DSA course?

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

    Thapa vii is a gem

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

    Thank you so much....u really make it simple♥️♥️♥️♥️♥️

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

    @
    Thapa Technical bro please clear my doubt: when to use and when not to use one over other:----- function declaration, or function expression or arrow function

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

    you are really good

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

    thank you so much sir

  • @04.nehalsingh12
    @04.nehalsingh12 2 года назад

    awesome tutorial sir

  • @mohdshahzaib4094
    @mohdshahzaib4094 4 года назад +1

    Nice explanation

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

    eg is superb

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

    Osm video thnx sir

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

    मलाई तपाईंको भिडियो धेरै मनपर्‍यो।

    • @ThapaTechnical
      @ThapaTechnical  4 года назад +1

      Khusi layo sunera.. sabbai sati haru lai share garideu la plz☺️

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

      मैले यो भिडियो मेरा धेरै साथीहरूसँग साझेदारी गरेको छु

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

    Thapa bhai thank you soo much, your video helped me soo much, ap se ek request hai CALLBACK KA REAL WORLD EXAMPLE bhi batao do na, i mean real programming ki ek example...aur bahot acha explain karte ho lekin thoda sa calm rhne ki koshish kiya karo samjhate time. Followed u on insta too

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

    Thank you 😇😇💓

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

    There is no need to pass the perTwo() as an argument of perOne(). If we can directly call perTwo() in perOne() body it still work. Can someone explain??

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

    Thank you so much sir 👍

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

    Very good explanation😀

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

    thankyou bhai...

  • @ankitsethia6534
    @ankitsethia6534 3 года назад +2

    Callbacks are a way to make sure a certain code doesn’t execute until another code has already finished execution.
    So func A executes and is completed only then func B (say callback func) will start executing. So this concept is called Synchronous javascript code in your video 50 ruclips.net/video/tBmeblr67U0/видео.html. So why Callback functions fall under Asynchronous javascript topic rather than Synchronous javascript topic?

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

      same query here, what diff it makes, other than that what if we call callfrnd function in the first line itself in the perOne function

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

    very well explanation... Thank you Thapa ...

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

    Thank you bhai

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

    Great Explanation Bro...

  • @ritikraj4755
    @ritikraj4755 4 года назад +1

    Nice sir

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

    thank you sir

  • @Sandeep-uj8hp
    @Sandeep-uj8hp 3 года назад

    Thanks!

  • @rahulnag9582
    @rahulnag9582 4 года назад +1

    callback ke liye perTwo ko perOne me pass karney ka jarurartt kya hai...
    bina pass kiye bhi toh direc call kar saktey hai na perOne ke andar se ?
    someone pls explain this.......

  • @touhiduzzzamanmunnaid-0013
    @touhiduzzzamanmunnaid-0013 3 года назад

    Thanks Sar...

  • @VikasGupta-ok9lh
    @VikasGupta-ok9lh Год назад

    Nice bhai

  • @RishiRaj-ex9wb
    @RishiRaj-ex9wb 2 года назад

    Thanks

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

    sir please make video on promises , async await

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

    Awesome video

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

    Amazing

  • @shreyashree6781
    @shreyashree6781 2 года назад +1

    awesome..❤❤❤❤❤❤❤❤

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

    Theme kon si use krty ho ap vs code ki

  • @ADITYA-rl8ub
    @ADITYA-rl8ub 4 года назад +1

    Congratulations bro for 100k subscriber

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

    But how are we able to call an arrow function before its declaration. It should return error na

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

    goood bro

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

    THANK UU

  • @RahulKumar-vr5md
    @RahulKumar-vr5md 4 года назад

    Nice job👌👌👌

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

    Where callfriend() is defined?

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

    Gjb 🥳

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

    Nice sir. :) Greate!

  • @VishalSingh-ko2hd
    @VishalSingh-ko2hd 4 года назад +1

    Sir pls pls pls ek full shopping cart ka tutorial banao na sir pls mai lagatar aapke har video pe ek hi cmnt kr raha hu......mujhe uski bohot zarurat h sir pls........mai or kahi se sikh nhi paa raha hu sir pls ek video banao na pls!

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

    great job!!

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

    how to select funA together, ant shortcuts plz reply

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

    perOne("Thapa", perTwo)
    In this code why perTwo() is not written. Why perTwo is not forwarded by parathesis ()?

    • @アマン-l8w
      @アマン-l8w 3 года назад +2

      We are passing it as an argument not as a function.

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

      @@アマン-l8w ok. I was confused in that part.. thanks

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

    thank

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

    Async and await ka banado na video

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

    Best as always!

  • @arunrawat3142
    @arunrawat3142 3 года назад +1

    Boom Guys!

  • @AbhijeetSingh-pw4tg
    @AbhijeetSingh-pw4tg 4 года назад

    Video on..... admin panel...

  • @BilalKhan-yg2ol
    @BilalKhan-yg2ol 4 года назад

    Sir ap sb ky comments py vedios banaty hen plzz mere request bi pori kr den... Mjy laravel py complete vedio chahye start to end plzz sir.. Mera final year project start ho gya ha or mery pas time bht short ha

  • @kunjbiharisharma-ze8bk
    @kunjbiharisharma-ze8bk Год назад

    this is not work with setTimeOut function

  • @swaroopthetechz1352
    @swaroopthetechz1352 4 года назад +1

    1'lakh vayapaxa special video 🤶🏽

    • @ThapaTechnical
      @ThapaTechnical  4 года назад +1

      Aba huna layo bro. Uta sabbai sati haru lai bana la.. dai ko 1lakh sunscobhayo banera.. aja rati 8bhje tira hunxa..

    • @swaroopthetechz1352
      @swaroopthetechz1352 4 года назад +1

      Thapa Technical 👌🏻 ok. Samir bhai la pani bandinxu

    • @swaroopthetechz1352
      @swaroopthetechz1352 4 года назад +1

      Thapa Technical tomorrow is holiday

    • @swaroopthetechz1352
      @swaroopthetechz1352 4 года назад +1

      Nepal won football $ag

    • @swaroopthetechz1352
      @swaroopthetechz1352 4 года назад +1

      Congarts. Dai. 1lakh. Very very. Congarts.

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

    const perOne = (friend, callfrnd) =>{
    console.log(" I am busy right now. talking to ${friend}. I will call you back. ");
    callfrnd();
    }
    const perTwo = () =>{
    console.log(" I am calling you back dakha.");
    }
    perOne("Zohair", perTwo);
    but output in the console
    I am busy right now. talking to ${friend}. I am calling you back.
    I am calling you back dakha.
    Why ${friend} method not working

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

    that means one function in an other function called callback function

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

    Thapa technical ki jai with regards indialeaked.com

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

    ❤❤

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

    Boom

  • @BilalKhan-yg2ol
    @BilalKhan-yg2ol 4 года назад

    Its my humble request sir plzz...

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

    How to search for a number or string or a boolean value from an array and print it, can anyone help.?
    const arr=['John' , 23 , true]

  • @swaroopthetechz1352
    @swaroopthetechz1352 4 года назад +1

    👋. 1'00'000. 👨🏻‍🏫. Vlogs.

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

    function abc(name,second){
    setTimeout(function(){
    console.log(`this is first ${name}`);
    },3000);second();
    }
    function xyz(){
    console.log('this is second funciton');
    }
    abc("function",xyz); is me call back function ne kam ku nahi kya 3 sec bad dosra function ana chye tha magar ye to phle hi show hojata hai console me

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

    💜💜🧡🧡

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

    function a() {
    setTimeout(() =>{
    console.log("hello") ;
    b() ;
    }, 3000) ;
    }
    function b() {
    Console.log("india") ;
    }
    a();
    b();
    Without passing function this program also run then why we are passing function

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

    Ravish kumar official

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

    TIME TIDE AND JAVASCRIPT WAIT FOR NONE

  • @GhostRider....
    @GhostRider.... Год назад

    nice explanation

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

    Thank you so much

  • @Techtherapybox
    @Techtherapybox 4 года назад +1

    Nice sir

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

    Thanks Bhai