Callback Functions in JS ft. Event Listeners 🔥| Namaste JavaScript Ep. 14

Поділитися
Вставка
  • Опубліковано 26 вер 2024

КОМЕНТАРІ • 976

  • @rajatsawarkar
    @rajatsawarkar 3 роки тому +391

    my colleague from USA showed me this playlist, can see how much people learn from you, love you man you made my life so easy

    • @abhishekkashyap8856
      @abhishekkashyap8856 2 роки тому +4

      May I know the clg name or you lying to promote this channel?

    • @rajatsawarkar
      @rajatsawarkar 2 роки тому +12

      @@abhishekkashyap8856 i don't need to prove you anything, stop being a Beta male you poor thing 🤣

    • @programming3043
      @programming3043 2 роки тому +3

      Chal jhutey

    • @AryanGNU
      @AryanGNU 2 роки тому +8

      @@abhishekkashyap8856 kaha se laate ho hate bhai ? Agar channel nahi pasand to mat dekho but hate mat failao

    • @abhishekkashyap8856
      @abhishekkashyap8856 2 роки тому

      @@AryanGNU aisi kon si hate fala di maine. Ye chutiyapa hum se nahi dekha jata. Real life scenario alag hote hai

  • @akshaymarch7
    @akshaymarch7  3 роки тому +92

    How was this video? Let me know in the comments below, I read each and every comment! ❤️
    Next Video: EVENT LOOP & Asynchronous JS 🔥 - ua-cam.com/video/8zKuNo4ay8E/v-deo.html

    • @MP09Dhar
      @MP09Dhar 3 роки тому +1

      Waiting new one after event loop

    • @kavyashree7923
      @kavyashree7923 3 роки тому +2

      It is a visual treat to see how javascript works on the dev tools.

    • @kishorsharma1976
      @kishorsharma1976 3 роки тому

      Great video 🙏

    • @deepanshu247
      @deepanshu247 3 роки тому

      Not only this one, but each of your video is very helpful Akshay. Also please accept my LinkedIn request :D

    • @hendrylawrence2175
      @hendrylawrence2175 3 роки тому

      Bro just tell me how to get a job after I learned this thing

  • @jagrutsharma9150
    @jagrutsharma9150 2 роки тому +201

    Things learned:
    1. Function that is passed on as argument to another function is called callback function.
    2. setTimeout helps turn JS which is sinhlethreaded and synchronous into asynchronous.
    3. Event listeners can also invoke closures with scope.
    4. Event listeners consume a lot of memory which can potentially slow down the website therefore it is good practice to remove if it is not used.

    • @chethanprabhu4475
      @chethanprabhu4475 2 роки тому +24

      setTimeout does not help to convert from sync to async. setTimeout itself is async operation. He used it to mock a api call.

    • @jagrutsharma9150
      @jagrutsharma9150 2 роки тому +2

      @@chethanprabhu4475 Thanks for telling

    • @a-mohdarif1597
      @a-mohdarif1597 Рік тому

      @@chethanprabhu4475 callback provide the power of async to setTimeout

    • @imaginecodes2382
      @imaginecodes2382 Рік тому

      @@jagrutsharma9150 you can edit your comment

    • @The-Great-Brindian
      @The-Great-Brindian Рік тому

      ah setTimeout. My favorite function in JS 🙂

  • @vanitharg
    @vanitharg 3 роки тому +109

    Happiness is when I actually do remember previous concepts when Akshay asks remember, remember.... remeeeeember :D . Long live Javascript and Akshay.

  • @amittiwary3096
    @amittiwary3096 3 роки тому +191

    I liked the part where you used devtool to show how callback works. It's like proving the theory through practice. I am waiting for the videos on the event loop.

    • @akshaymarch7
      @akshaymarch7  3 роки тому +46

      I would suggest you to play in your devtools, it's super fun to see things working! ❤️

    • @samyever2be
      @samyever2be 6 місяців тому +2

      @@akshaymarch7 Can made one video about your Namaste react., I am new for frontend

  • @partspieces8165
    @partspieces8165 4 місяці тому +2

    Excited! Excited! Excited!!!!! But uh...can u please cover what debuggers are?? How we can used them?? So far, we've seen u use Debugger but a nice, crisp explanation from u would be helpful! ❤

  • @GauravKumar-ue7nz
    @GauravKumar-ue7nz 3 роки тому +9

    Don't skip ads on such a true quality content.

  • @anilnarra8905
    @anilnarra8905 2 роки тому +11

    what is a call back function in java script ?

    we already know that function are first class citizens in JavaScript.
    that means we can take a function and pass it to another function.
    when we a pass a function to another function, whatever the function that we are passing as an argument that we call it as call back function.

    Example:-

    function x(y) {
    console.log("x");
    y();
    }
    x(function y() {
    console.log("y");
    });

    in the above example function y is the call back function to the function x.
    in the above example it is up to function x on when it wants to execute function y, means in the code function y will get called by function x after some time, that’s the reason we got the naming convention as call back function , these function will get called after a while back.

    setTimeout(function a() {
    console.log("Hi")
    }, 5000)

    in the above example function a() is the call back function to the function setTimeout.

    these call back functions are very powerful in JavaScript.
    it gives us access to the whole asynchronous world in a synchronous single threaded language.
    JavaScript is a synchronous single threaded language. That means it can do one thing at a time in a single order.

    but using call backs we can do asynchronous operation in JavaScript.

    for example if any function or operation takes lot of time (may be 20 to 30 seconds),
    and if we try to execute this function using main thread (JavaScript has only one main thread), then the JavaScript won’t be able to do any other things in these 20 to 30 seconds.
    we should never block our main thread.
    that’s the reason we should always try to choose async operation which takes time.

    without the concept of call back function we won’t be able to achieve async operation in JavaScript.

  • @himanshushekhar8409
    @himanshushekhar8409 3 роки тому +484

    cleared 12 LPA package interviews having just 1 year exp. just because of you brother . Hats off

    • @mrityunjaysharma
      @mrityunjaysharma 3 роки тому +15

      Hii i have learnt HTML, CSS, data structure and Algorithm now learning JAVASCRIPT. Can you suggest me what should i learn after this?? And how to apply for a job??

    • @mohammadmuzmilkabir3067
      @mohammadmuzmilkabir3067 Рік тому +5

      What was your previous package that you got so much hike ?

    • @heathens2867
      @heathens2867 Рік тому +1

      Tech stack and company??

    • @Adityasongs1
      @Adityasongs1 Рік тому

      ​​@@mrityunjaysharma learn Node Js for backend With express Js, And Learn React and Next js For Front end you can Go with Angular Just see whats the demand in market or whats suitable for you nowadays react is popular and there is demand. s Angular most of the cases pays more salary then cause its little more diffuclt. ....Then Leaen Intermediate level of CI CD Git and github...All set..!

    • @evil6270
      @evil6270 Рік тому +1

      @@mrityunjaysharma after learning that what u doing now bro i going same like u now, u got jobs and what u did help me out

  • @devindershuthwal5982
    @devindershuthwal5982 2 роки тому +12

    Watching the whole Namaste JavaScript tutorials in sequence , its a beautiful tutorial. You have done really very good R&D to make each videos. Thanks for such a beautiful and useful tutorial.

  • @barrybrewer5164
    @barrybrewer5164 3 роки тому +5

    You're great man. Clear. Energetic and knowledgeable. All the best qualities of an instructor. Thank you!

  • @reetisharma2348
    @reetisharma2348 3 роки тому +12

    Thankyou so much! I'm noting it all down, making notes so as to revise them in future ! Can't believe this content is free !!

    • @akshaymarch7
      @akshaymarch7  3 роки тому +6

      Fantastic, that's exactly my way of learning! 🔥

    • @mohit96nain
      @mohit96nain 3 роки тому +1

      Is it possible for you to you share your notes. I would really appreciate your efforts and dedication. Thank you in advance 😇😇
      my email: mohit96nain@gmail.com

    • @shruthib3366
      @shruthib3366 3 роки тому

      I would love to refer to those notes Reeti. Could you please share it to shruthibabu2018@gmail.com
      Thank you so much!

    • @krunalumak6838
      @krunalumak6838 3 роки тому

      Same here Reeti, I would like to read your notes for interview reference. Please send them to krunalumak25@gmail.com
      Or we can have a google doc, interested people can add notes there

    • @HimanshuSingh_92
      @HimanshuSingh_92 3 роки тому

      Can you please add them in Google docs and add us?

  • @manushreemallaraju2369
    @manushreemallaraju2369 2 роки тому +33

    @Akshay I'm working as Web Developer from one year, I have struggled so much to understand these basic concepts. I have referred to many courses in udemy with 50 hours+ lectures, but none explained this way. Like a Netflix series I got addicted to your explanations and I think I will never forget these concepts in my entire life!!
    Thanks a lot Akshay, I kindly request please make more videos like this just in JavaScript!!
    I will recommend only 'Namaste JavaScript' to everyone from now on!!
    May God bless you!
    Thanks for all your help!☺

    • @raj-pl8xz
      @raj-pl8xz Рік тому

      hello angel..give yur num

  • @Ghanshyam1987
    @Ghanshyam1987 3 роки тому +5

    Yes, waiting for event loop, All your videos are like connecting missing link while learning JavaScript. Really appreciate your efforts and thanks

  • @ramyanh5302
    @ramyanh5302 3 роки тому +17

    The effort from you to explain things with so much perfection is so real. Fortunate to find your channel on UA-cam :)

  • @yuantu4146
    @yuantu4146 3 роки тому +4

    watching your videos is like watching my favorite tv shows, I just can't stop. Thanks Akshay! You have so much talent in expressing things clearly!

  • @bharatjain6930
    @bharatjain6930 3 роки тому +12

    Brother, you are amazing!!! I can't wait to learn Event Loops from you. Although I already have a quite clear idea of it still I feel like your teaching it will be next-level enlightenment. Kudos to you, man!

  • @gauravthakur3085
    @gauravthakur3085 3 роки тому +6

    This series is really helping me to clear my all Javascript concepts

  • @sarfarazalam6077
    @sarfarazalam6077 3 роки тому +5

    Understood callback in great detail 😊.
    First example explained with stack built solid foundation & made easy to understand rest.
    Very excited for event loop.
    Thank you 😊

  • @nilamrakholiya5650
    @nilamrakholiya5650 2 роки тому +1

    if sometimes I don't feel to learn JS concept and next open your videos and your enthusiasm fill my mind with excitement to learn.

  • @sujoysaha2169
    @sujoysaha2169 3 роки тому +4

    After watching this series, I Can confidently say that I know JavaScript. Thank you Akshay, you are great 🙏

  • @Abhishekpandey-ud8fg
    @Abhishekpandey-ud8fg 3 роки тому +2

    Your Video Lectures are really really helpful, the way you have explained "Closures", ''Callbacks", "Call Stack and How Synchronous and Asynchronous Thread Executes" everything is top class.

  • @harsh55
    @harsh55 3 роки тому +3

    Bhai ke videos are like next episode of a blockbuster series where people wait eagerly for next episode

  • @MrAnupkash
    @MrAnupkash 3 роки тому +11

    It was brilliant to watch the whole set of Namaste JS tutorials and this has given me a lot of confidence as a developer. Akshay has just lit this journey by explaining concepts by coding and in real time, which I wonder no tutorials would do. Just waiting for your upcoming videos and until then I shall play around with JS !!😉😁

  • @YourAKShaw
    @YourAKShaw 3 роки тому +8

    This is the best series for JavaScript ever! I haven't come across any other video media which covers these topics in such depth.
    You rule man!!

  • @arjuntanti4195
    @arjuntanti4195 6 місяців тому +1

    after watching your javascript playlist , I feel very confident in js 🦾🦾, thanku ❤

  • @amankumar-SportsLover
    @amankumar-SportsLover 3 роки тому +3

    I think after watching all your videos, I can crack all interview of my dreams company #apple #Facebook #Microsoft #Google ...these 5 company is my dream..... great learning stuff's

  • @Dineshsingh-qt9yk
    @Dineshsingh-qt9yk 2 роки тому +2

    Thank full 🙏 JavaScript depth series. Because many step are make easy watching this series. All interview questions is solve.
    My life make easy So lot of thanks 🙏🙏
    Akshay Sir.

  • @bipuljha792
    @bipuljha792 2 роки тому +1

    This is my second time going through the whole playlist, it's still gold

  • @dilipkumavat4891
    @dilipkumavat4891 3 роки тому +3

    Yes Brother , we understand it very well and in practical way , thanks for this kind of deep dive to the topic + interview question explanation, even i was asked this question in interview too.

  • @rambabumutyala884
    @rambabumutyala884 2 роки тому +2

    this is a very rare series in javascript and a good opportunity for our beginners thank you Akshay bro

  • @vidhubhardwaj8412
    @vidhubhardwaj8412 3 роки тому +209

    So, Akshay looking for a bride
    In which language do you code?
    She: C++
    Akshay: Hmmmm
    She(2): Java
    Akshay: Hmmmm
    She(3) :Python
    Akshay: get out
    She(4): Javascript
    Akshay: Maaaaaaaaa Bahu mil gayiiiiii

    • @akshaymarch7
      @akshaymarch7  3 роки тому +59

      Hahaha, this gave me a good laugh!! ❤️

    • @akshayhere
      @akshayhere 3 роки тому +6

      Lol. Always better to be language agnostic

    • @abhijiths148
      @abhijiths148 3 роки тому +3

      Well after marriage she will get double the Salary. ;)

    • @urvishagreat
      @urvishagreat 3 роки тому +1

      Main criteria ... She should know JavaScript. 😁

    • @pavanvidyasagar905
      @pavanvidyasagar905 3 роки тому +1

      @@urvishagreat she'll learn from Namaste 🙏 JavaScript series 😁

  • @sachindrapandey7146
    @sachindrapandey7146 Рік тому +1

    Eske liye aapko Tamra ptra diya jayega 26 Jan ko :) jo Amrish puri ko mila tha desh ki aajadi ki ladayi me ...... One of the best JS playlist on UA-cam....Love you

  • @nishantkrsingh
    @nishantkrsingh 3 роки тому +3

    really boosting my confidence with every video..

  • @priyankashinde2070
    @priyankashinde2070 28 днів тому

    The way you explain each and every concept is too good and thank you for explaining dev tools in detail🙏

  • @kavitapandey3721
    @kavitapandey3721 3 роки тому +4

    I wish I had a teacher like you in my graduations😣 but koi baat ni der aae durust aae😄 beautifully explained😊 thank you so much🙏

  • @ogs3721
    @ogs3721 3 роки тому +2

    I searched the entire internet universe to find a perfect explanation and found it here. Thanks.

  • @farazhusain925
    @farazhusain925 3 роки тому +5

    I've completed my master's in mechanical engineering, and after that, I planned to switch my career in the IT industry.
    Yesterday, I cracked the first round of interviews for the position of front-end developer.
    All the questions on JS were from your videos, and I can bet that the interviewer has also watched your Namaste Javascript series.

    • @mdfarhan2047
      @mdfarhan2047 8 місяців тому

      Bro how's your corporate Life going... I'm from civil background...can you tell me how many experience years you have now and how to get into it company..plz share your experience? Where are you now?

  • @IamDanish99
    @IamDanish99 2 роки тому +2

    I am a data engineer by profession. But was always interested in JavaScript and its' capabilities. Now after going through these video series, the excitement level for me is surreal, now I can understand JS in a fun and easy way! Thanks a lot Akshay.

    • @demonslayer4607
      @demonslayer4607 2 роки тому

      how to become data engineer as a fresher ?

  • @nripendramohanshrivastava6255
    @nripendramohanshrivastava6255 3 роки тому +3

    I have been studying js for past 4 months... Thought I know js... But after seeing ur namste js series.. I think I am just a noob and donkey in js... I think I have to postpone or give up my interveiw which is on next Friday.. Throttling debouncing execution context etc.. I never heard about this in the UA-cam tutorial which I prefer...ur doing a great job.. Just keep posting it regularly.. Has ur videos can only make many students placed ...

  • @programmed509
    @programmed509 3 роки тому +1

    Man you are really one of the best tutor I have ever come across🙏🙏🙏 Anything in JavaScript if I'm not able to understand... I just simply watch your video and it really gets embedded into my head. Nice work bro👍🏻👍🏻

  • @dikshagupta8944
    @dikshagupta8944 3 роки тому +4

    Your efforts in every video never go in vain. To see everything in the dev tools is just amazing. Its like seeing what's going on under the hood and it does make everything crystal clear. Keep explaining like this 😍😍 .... waiting for the event loop video 🌸✨🙌💁 Thank you for all your efforts!! 😇

  • @ramjondhale8758
    @ramjondhale8758 3 роки тому +2

    Excellent explanation. Didn't see this type of deep explanation with the actual working with example before in any paid courses which this guy is providing free of cost 🔥🔥

  • @bikramrout1464
    @bikramrout1464 3 роки тому +6

    It's a Treat to watch and learn from you.

  • @vigneshbhandarkar9039
    @vigneshbhandarkar9039 2 роки тому

    Really I have not seen such a practical,indepth n end to end explanation except Namasthe javascript series.........I wish to gain more and more knowledge from you

  • @nitin0001
    @nitin0001 3 роки тому +4

    I needed this in reactjs closures behaviour is very different than used useCallback hook to solve this issue of denouncing bcoz needed to implement the denouncing but was unable to implement directly in React js🙏

    • @akshaymarch7
      @akshaymarch7  3 роки тому +1

      Why don't you try to code it yourself, a great opportunity brother.!

    • @nitin0001
      @nitin0001 3 роки тому

      @@akshaymarch7 i tried but for every render it create new instance of that closure function to keep reference to same function for every render i need to use useRef or useCallback hook

  • @itumandal22
    @itumandal22 2 роки тому

    your explanation is very crystal clear. and the way you demonstrate in devtool is simply to the point. Thank you.

  • @justinphilip4235
    @justinphilip4235 3 роки тому +7

    This was yet another insane video. You really make sure we REMEMBER the concepts taught back. Just awaiting for next Event Loop video. ♥️💯

  • @jaishrikrishna5755
    @jaishrikrishna5755 2 роки тому +1

    Best explanations and the devtools explanations are sweetest add ons .Thanks a lot .

  • @TheCodingOdyssey
    @TheCodingOdyssey 3 роки тому +3

    This is a really good series. Learning some new things! Namaste :D

  • @deepameesala6051
    @deepameesala6051 2 роки тому +1

    This is the best explanation of callback i ever saw!!! really like the way you explain complex concepts in a easy way

  • @krishnajangir8932
    @krishnajangir8932 3 роки тому +3

    Akshay , your videos are really helpful , thank you for sharing these with us and waiting for more. And one request , could you please create a video on callback hell and (call , apply , bind) methods of JS.

    • @akshaymarch7
      @akshaymarch7  3 роки тому +2

      Call Apply Bind video is already there on my channel. Please check out the other playlist. 🕺

  • @WaqasKhanDurrani
    @WaqasKhanDurrani 2 роки тому

    All videos till now going Mind Blowing.... Best Ever way of teaching!

  • @santoshgiri9698
    @santoshgiri9698 3 роки тому +5

    Very good video on call back function () ..can we get a video on callback() vs promises() vs asyn await () please

  • @samarpanharit4268
    @samarpanharit4268 3 роки тому +1

    Very Excited for the event loop video. The dev tools explanation is the best since we don’t have to guess what would be happening but we can see exactly what’s happening.

  • @veersingh-bv9bz
    @veersingh-bv9bz 2 роки тому +3

    Please Akshay sir please continue this series. It's been 1 year please sir continue it 🙏🏻🙏🏻

  • @macxdeep
    @macxdeep 3 роки тому

    Mind blown by javascript, only because you explain in easy way!

  • @tanujupreti
    @tanujupreti 3 роки тому +15

    Now youll get us out from callback hell. I have faith in you 🥳🥳🥳

  • @namankeshari7332
    @namankeshari7332 3 роки тому +1

    Thank you so much for explaining this concept in this video! My sir (teacher in a coding institute) recommended this course. And I came here just to revise callback functions but now I know much more than that! Thanks again, sir!

  • @syedsheralihussain
    @syedsheralihussain 3 роки тому +8

    Life has so many questions. But one of the most important question that we all should ask is !
    20:12

  • @GameSphere674
    @GameSphere674 3 роки тому +1

    The way you explain things, I found it very easy to understand. Thanks for this tutorial. Hope to see more!!

  • @ManeeshVijaykar
    @ManeeshVijaykar 3 роки тому +14

    How does the eventListener on Js File and Inline html onClick event differs? Do they differ on Garbage collections?

    • @akshaymarch7
      @akshaymarch7  3 роки тому +15

      Wow, amazing question. I would suggest you to open your devtools and try it out. Try to find out yourself, it will be super fun. ❤️💥

    • @baibhavkumar6031
      @baibhavkumar6031 3 роки тому +5

      This is a very good question, I found this stack overflow link helpful. Posting it here so that others can get some info as well stackoverflow.com/questions/6348494/addeventlistener-vs-onclick

    • @frank3481
      @frank3481 3 роки тому +1

      @@baibhavkumar6031 love this article. thanks

  • @vikasvk_
    @vikasvk_ 3 роки тому +1

    Dev tools are the USP of your videos. They make us understand so many things happening under the hood of that V8 engine (pun intended). Your way of teaching is just fabulous.

  • @shivareddy1334
    @shivareddy1334 3 роки тому +3

    Word Wrap setting in Visual Studio Code might be helpful for you.

  • @reshmashaik7015
    @reshmashaik7015 Місяць тому

    I am glad that today I learned extremely significant concept. Mr. Saini the way you portrayed and explained this concept is beyond my anticipation. Dev tools is like SONE PE SUHAGA.I made my day productive with your aid. lets jump into next concept.👍.

  • @SantoshKumar-yg7rc
    @SantoshKumar-yg7rc 3 роки тому +15

    who are these people who give thumbs down ? Just Curious.

    • @krunalumak6838
      @krunalumak6838 3 роки тому

      Probably they are Antiscripts(Antichrists)

    • @siddharthsingh7341
      @siddharthsingh7341 3 роки тому

      Might be other JS channel people who come, learn, steal ideas and concepts and dislike...lol :)

    • @KatyayiniK-m6r
      @KatyayiniK-m6r Місяць тому

      They are may be just like " .catch ", we have to just ignore them.

  • @sarathchand8305
    @sarathchand8305 2 роки тому

    Presentation feels very friendly Feels like a friend talking about js,

  • @karthikd490
    @karthikd490 3 роки тому +3

    When dealing with deeply nested async functions, I sometimes run into maximum call stack exceeded error. I read that async functions need to end with a return statement but still sometimes I end up with this issue. Appreciate if you could make a video on how to properly handle async functions to avoid this error. Thank you.
    This is a great video nonetheless.

  • @vinodgodti9301
    @vinodgodti9301 3 роки тому +1

    I am super excited for the event loop video. Great efforts Akshay. Every week I eagerly check for your channel for your videos. Thank you for your contribution to js community.👍

  • @nikithamalkapuram8728
    @nikithamalkapuram8728 3 роки тому

    Before this video, I don't know how eventlisteners work.
    But now, I know event listeners and their work.
    Thank you.
    And I am so excited about upcoming videos.

  • @jitendrakumar-007
    @jitendrakumar-007 3 роки тому +2

    Thanks again and again... After learning from your video i was able to explain hoisting in the same was you explained.. It was really amazing... I really enjoyed that.. And learning a lot...

  • @satishmaurya2089
    @satishmaurya2089 2 роки тому

    your all videos are really helpful and answering lots of doubts.

  • @shubhamdahale1995
    @shubhamdahale1995 Рік тому

    You are very talented and enthusiastic about teaching JS.the way you explain is very convenient and easy to understood. Thanks for teaching us. Please keep it up.

  • @bharathenishetty9491
    @bharathenishetty9491 2 роки тому

    i have taken one most rated JS courses from udemy, they didn't clear all the doubts but with the help of dev tools, you cleared all doubts for me with dev tools is more helpful with crystal clear

  • @Anna36936
    @Anna36936 2 роки тому

    Best drum roll I've heard! Thank you for the TOP quality videos, they really help.

  • @paarthbajaj9160
    @paarthbajaj9160 3 роки тому

    this concept of explaining everything through dev tools is awesooooome.

  • @poojanpandya8864
    @poojanpandya8864 2 роки тому

    I have been working on JS for about 2 years, but never understood these concepts properly. Thank you so much Akshay bhaiya.

  • @ManishSharma-jz2hw
    @ManishSharma-jz2hw 3 роки тому +1

    It's not only event loop video, I am always excited for any of your video Akshay.
    Thanks for clearing out the concepts one more time. 🙏♥️

  • @mitalisingh533
    @mitalisingh533 7 місяців тому +2

    I have a doubt sir. What will happen if the "setTimeout" function it set for 5 seconds and the next "x" function is some heavy function, let say we need to print 100,000 numbers in sequence which takes more than 5 seconds to execute completely. So will the the "setTimeout" function will run first OR "x" function will start printing the numbers and will execute "setTimeout" midway after 5 seconds and then again continue to print the leftover numbers OR "setTimeout" will be executed after the execution of function "x". ???

  • @pahadihumsafar524
    @pahadihumsafar524 2 роки тому +1

    aisha lag rha hai roj ek hi topic chal rha hai..bhut ache se har ek topic connected hai .theory of relativity in js

  • @humza5107
    @humza5107 3 роки тому

    Your excitement of teaching is the motivation.

  • @manojlandge9149
    @manojlandge9149 3 роки тому

    Thanks for explaining things in such a easy manner..
    because of your teaching with debugger I am getting a hang of it now..
    now I choose to use debugger instead of putting logs all over the code..
    thanks for making things easier for us !
    gob will surely bless you for the efforts you are taking to put these things online for free..
    thanks again for your kind efforts!

    • @nipu8406
      @nipu8406 2 роки тому

      Plz do tell how all to add debugger

  • @sandeepkapri8101
    @sandeepkapri8101 3 роки тому

    learnt something very new, not heard of ever in 5 years of code, Thanks

  • @nirmesh44
    @nirmesh44 3 роки тому +1

    No matter what every time i learn something from you even though i know the concept.

  • @priyank88
    @priyank88 3 роки тому

    Dev Tool example, and seeing closure as a part of function was enlightening!!!!

  • @gautampatil3954
    @gautampatil3954 2 роки тому

    you said dont go without commenting down so I am commenting here . Sat today whole and consumed your whole playlist. Love it

  • @vinothkumarv9722
    @vinothkumarv9722 3 роки тому +2

    Vinoth love >> Akshay:
    this topic love it all specially,
    1.closure, in addEventListener().
    2.removeEventListener()? then why it is needed? really super i love it.
    09:35 > Js dent' have FClass fn()!, then we don't have the call back function and taking action Async operation's.
    13:20 > Means, here whenever function invocation is happening Global execution context is created and after code compiled the GEC, will be pop out. :)
    14:32 > let count =0, is now is global variable so it not safe means needed to make it ,,private so we needed place inside the function after this.. variable is becoming like private right, so this context is awesome ::❤️
    the this callback fn() is accessing the parent fn() scope in this case the parent function is a closure, formed help callback function() ❤️.
    15:56 > GEC - is creating, because of function invocation is happening here am right akshay?. ok clear
    19:50 . So FINALLY explaining about removeEventListener(), i know this fn, but don't' no usage, but now is really interesting, i will implement in my code its next onward.

  • @manishkumar-hl8ce
    @manishkumar-hl8ce 3 роки тому

    i m learning with a guy who enjoys much explaining things... and i love this way to learn javascript.

  • @SalmanMalik-w2x
    @SalmanMalik-w2x Місяць тому

    hats off to you brother, you are a phenomenal force of nature in JS 😍.

  • @inderpreetsingh4176
    @inderpreetsingh4176 6 місяців тому

    I do appreciate the way, you explain the dev tool in depth

  • @roshandongare186
    @roshandongare186 3 роки тому

    Thanks for such an amazing videos. You explains it very well. I started watching your videos, you make it more interesting, suspicious and put clarity. Earlier every time I used to end up watching unnecessary videos when I opens up UA-cam. Thanks Akshay.

  • @ShivamSharma-rb2zy
    @ShivamSharma-rb2zy Рік тому

    bole to jabarjasttttttt sir mjaa he aagya aapse padhne ke baad me to kamaal ka padhate hain aap sir bahutt khudd naam roshaan kerye khuub tarrakii kareye meri duaa aapke saath hai..........................................................guru ji ko mera pranaam..............................................aaka shishya.........................SHIVAM SHARMA...........................................

  • @nikhilaatkuri545
    @nikhilaatkuri545 Рік тому

    This series is the best KT session I have ever attended. Thank you so much for all these videos.

  • @rishabhchopra883
    @rishabhchopra883 2 роки тому

    Working for 7-8 months using JS without knowing these things. This stuff is just amazing !!!

  • @prasadpg6189
    @prasadpg6189 2 роки тому

    understood callback as a need in javascript rather concept, thank u so much

  • @MadaraUchiha_404
    @MadaraUchiha_404 2 роки тому +2

    i don't know how many times i can thank you

  • @guggillavenkatamanohar5647
    @guggillavenkatamanohar5647 Рік тому

    this difficult concepts going directly into my mind.
    once albert Einstein said: if you are not able to make a hard concept understandable to a child then you don't concept very well.
    You are the master of javascript

  • @RajeevRanjan-zi9sb
    @RajeevRanjan-zi9sb 3 роки тому

    I m one of late person to join ur channel but it's awesome to listen you throughout the video.

  • @gauravpatel2695
    @gauravpatel2695 2 роки тому

    it's really helpful you are covering all the javascript concept thanks a lot

  • @adityabhosale4446
    @adityabhosale4446 8 місяців тому

    Im here after 3 years after you uploaded video, but still it is very very usefull, thanks for all namasate JS video.