Javascript interview | Closure

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 173

  • @manishkumar3902
    @manishkumar3902 2 роки тому +6

    Absolutely the best explanation I ever had watched for closures. Please continue this series and make videos on hosting, HOC, event loops , callback hell , currying as well

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

    simply awesome...wont forget Closure ever...art of simplifying stuff....

  • @ankan-dev
    @ankan-dev 2 роки тому +1

    This is such a great example. Its true that everybody uses it in day to day life but nobody knows it by name actually or just gets puzzled due to this in yhe interview.
    Would be really looking forward to more such videos in the future.

  • @Anshulchanpuria0315
    @Anshulchanpuria0315 4 місяці тому +1

    Absolutely the best explanation I ever had watched for closures.

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

    Maza aa gaya closures padh ke, never thought koi itna asani se padha dega, so many examples and tutorials out there but real application aaj samajh aya

  • @devjourney6209
    @devjourney6209 2 роки тому +6

    Great explanation, you are such a good mentor.
    Your efforts won't be wasted, we're all learning on your paths.

  • @samirkha
    @samirkha 10 місяців тому +1

    Sir please do all videos with a speed like you maintained throughout the video. Excellent and well explained. Now I can blow the interviewer mind.❤

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

    I am working as React developer for the last 2 years. Now only i know that there is something called closure in javascript 😆

  • @soumadip_banerjee
    @soumadip_banerjee 2 роки тому +5

    We need a JS interview series! Plz ❤️

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

    Great explanation but I think this explanation lacks something. While saying closures gives you access of the outer scope variables into inner scope I think the term "even when outer function has already executed and popped off the stack" should also be highlighted otherwise it is just a normal lexical static scoping right?

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

      Exactly. Usually, that’s how interviews pivots to lexical scope. This was focused on practical use case

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

      😀😀😀

  • @Sanjay-ie4ui
    @Sanjay-ie4ui 2 роки тому +2

    Please continue... hitesh sir it will be really helpful for us and BTW 4K quality is awesome as your teaching

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

    Getting more confidence in Closure, really amazing video and well explained sir!

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

      That’s exactly what you need in interviews

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

    Awesome explanation with realtime example, keep notifying us with new topics of JS, Thanks for this.

  • @VivekVerma-oo3dx
    @VivekVerma-oo3dx 10 місяців тому +1

    can't we give an arrow function to the onclick and in that arrow function we call the colourChange function so that every time the button is clicked then only it will run

  • @chinmaymeghare9414
    @chinmaymeghare9414 7 місяців тому

    The Best Explanation so far!!!

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

    Really loved it. Please continue the series 🚀

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

    Really nice explanation. Please keep adding videos to this series, as I am preparing for interviews. It would be very helpful for me.
    Thank you.

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

    Please make more interview question series on JavaScript.

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

    You made closure very easy to understand in very short time period. Gereat video sir, 💯.

  • @hitesh-patil
    @hitesh-patil 2 роки тому

    This is the most relevant series I believe.

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

      Then it definitely deserves to be shared

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

    I am not goanna forget what Clouser is in my entire life.

  • @khalid_aziz.
    @khalid_aziz. 2 роки тому

    Simplest Explanation Ever about Closures 💥.
    Keep posting concepts like this ❤️

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

    Please provide more videos, sir, on JS interviews.

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

    please continue this series what the design pattern as a javascript we should know

  • @krishnakashyap8915
    @krishnakashyap8915 3 місяці тому

    bhai sach batau to main chai aur code se aaya tha aaj mujhe pta chala ki aapki englsh channel hai and mtlb chai aur code pe aap bahut aaram se baat karte ho but yaha laga bahut hurry me.....great to learn from you?

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

    what is the relationship between closure and decorator ? now that's not easy

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

    Super helpful 👍🏻👍🏻👍🏻😀

  • @meowish952
    @meowish952 2 місяці тому

    wrong. thats lexical scope. closure is a combination of lexical scope and still can access the parents functions variable after the parent has already run

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

    Yes please bring such content daily

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

      I will try but daily is challenging, quality takes time

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

    Please make video tutorials on Ruby On Rails Technology

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

    ✨ Crystal clear example ✨

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

    This was really great; thank you

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

    Great explaination! Please explain promises and callbacks and please continue to make such videos on js interview preparation.

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

    Really your doing great help / service to the new aspirants also Experienced

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

    Thank you Sir. Could you please make more content just like this for Javascript interview preparation?

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

    Please continue the series, we want js interview series!!!!!

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

    I didn't even wanted to see this but sir only watching it because you really really worked hard for recording this video! Thanks for putting so much effort ❤️

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

    Please being more videos. They're extremely informative. Love the knowledge you share.

  • @ankiTKumar-cl7yt
    @ankiTKumar-cl7yt 2 роки тому

    Sir please make a video on event loop and how it works internally

  • @shikharsingh3961
    @shikharsingh3961 9 місяців тому

    Hey Hitesh, are there supposed to be only 2 Videos in this Playlist? Would love it if Whole Javascript was Covered through the Lens of a Javascript Interview.

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

    please make videos like this with intermediate to advanced concept

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

    Sir please start a series for interview preparation

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

    Great explanation Sir , we need more video like this on Javascript or on Reactjs

  • @muskandodmani3579
    @muskandodmani3579 9 місяців тому

    That was really helpful!! Thanks a lot.
    Could you please share at least 2 examples so that we can grasp it completely.

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

    we want more topics like ,async await ,callbacks ,promises snd all

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

    This went so smooth. Great explanation 👌. Please bring more such videos.

  • @kobiowuquadri9458
    @kobiowuquadri9458 11 місяців тому

    Thank you so much, Hitesh, I really love your way of teaching
    Well explained.
    I understand CLOSURE well now.

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

    Hello I want to know, is there any next video coming in this playlist?

  • @prateekdubey7980
    @prateekdubey7980 3 місяці тому

    post more videos please in this series for interview: Js, css, html, react

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

    Please sir make this kind of videos to crack the JavaScript react interview, it would be really helpful. please create a JavaScript and react interview series.

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

      Good react interviews are 60-70% on JS

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

      @@HiteshCodeLab then JS interview series would be perfect to clear interviews sir.

  • @prakhargupta4572
    @prakhargupta4572 5 місяців тому

    does this series have only 2 videos?

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

    A small query . Is all function a closure?

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

    Please complete this interview series

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

    Please continue this….🎉

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

    please make more videos on js interview questions

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

    Thank you sir for this series.....💯🔥💯🔥

  • @No_way-Yash
    @No_way-Yash 2 роки тому

    Love your Voice and accent , KEEP POSTIN

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

    Sir definately we need more videos like this one 😇🙌

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

    Great 🎉🎉🎉

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

    Please make this series sirr....

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

    Yes sir continue this series it's very useful content for all of us, especially explanation.
    why sir JavaScript marathaon stop?

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

      It was mentioned in last video of that series. It was not adding value

  • @An-kitttt
    @An-kitttt Рік тому

    make more video on javascript interview questions..

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

    Can't we just use the arrow function for that instead of using that closure? @hitesh. Love your videos

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

    please 🙏🏽 sir ,
    We want Full interview questions and answers series on
    JAVASCRIPT AND REACTJS

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

      Let’s not mix JS snd react, anyways most interviews are on JS

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

      @@HiteshCodeLab okay sir no problem at all, thanks for replying

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

    a pure Function returning itself, basically recursion is also a closure ,i guess

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

    This man is ❤❤❤

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

    Helpful, pls do more videos

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

    much needed sir, please bring more of these videos

  • @MeetR-pe7oy
    @MeetR-pe7oy 2 роки тому

    i m currently learning js. this video realize me i can visualize the Language. plz make video like this to crack interview. its very helpful .

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

    Please make it for higher order functions and currying 🙏 and would be great if you also explain about nodejs engine 😁

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

    please come up with more such interview questions🤩

  • @VarunKumar-n1d
    @VarunKumar-n1d Рік тому

    we love your videos

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

    Oh my god! The best example for closure 🫡😍

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

    I am lucky guy who got to know about you videos. Thanks for the content.

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

    very nice explanation sir. Thank you so much. please make full pledged javascript-nodejs interview series.🤩🤩

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

    please cover backend as well

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

      Backend is wide, backend is with JS, java, php, rails, and more

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

    Chai aur code pai sir kb video ayega sir 😦 I m still waiting.. ...

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

    Please make such videos of Interview.

    • @shivuwuu
      @shivuwuu Рік тому +2

      hi bro , i made 2 videos about dsa with javascript , i hope that you will be interested 😇 , currently i am making a video on Linked list , but i need some feedback... , do you think those videos are actually capable of teaching someone dsa?

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

      May I know the link so that i can view and I am also preparing Data Structure for interview@@shivuwuu

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

    Hi sir. I hear about Hero Campus Challenge. 20 lakhs is there in prizes also. Please make a video on that sir.

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

    this is super helpfull.I have one question though. when you set clickHandler('orange') to onclick without return. why it''s already excuted without any click event.

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

      because document..onclick expecets a function reference not a function call

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

    Please make such more videos

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

    Thanku so much today i understood wat is closure after few interviews

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

    Thank you for your explain, it's very clear to understand. thanks for the sharing your knowledge 👍👍

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

    we want like this kind of session

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

    Interview questions are hot topic, please do make this type of videos 👍

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

    What is higher order functions in javascript ?

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

    Loved your video 😍 please bring more

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

    Hi, Sir
    Please make more video javascript interview questions.

  • @vinodkumar-sm6tl
    @vinodkumar-sm6tl 2 роки тому

    In deapth and the easiest way explained about clouser thank you sir I refreshed my knowledge.

  • @nikhilkumar-YT
    @nikhilkumar-YT 2 роки тому

    "Is Artificial Intelligence a SCAM? | Career Advice 2023 | Tanay Pratap Hindi." Please share your opinion on this video.

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

    Neatly explained.. ☺️

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

    Very well explained.Thank you ❤

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

    Yes Sir definitely we are looking forward to see more videos like this.
    Now I am in very much good position to explain closure to interviewer. 👍☺️

  • @singh.aadarsh
    @singh.aadarsh 2 роки тому

    Amazing.keep it on

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

    Yes Do more topics

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

    its simply the best! Sir

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

    Sir, I have learned countless things from you and now I think I am ready for an interview, but sir I don't know where,whom,how should I apply to get a very good Javascript based project. Please suggest some great place or company so that I can contribute my Js knowledge.

  • @AshishRaj-ls9cb
    @AshishRaj-ls9cb 2 роки тому

    Interview q on some basic sql commands

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

    Great please continue

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

    Great 👍