Closures in JS 🔥 | Namaste JavaScript Episode 10

Поделиться
HTML-код
  • Опубликовано: 30 июл 2024
  • Closures in JavaScript is the most important topic for interviews. Even many senior frontend developers don't understand this concept properly. This video will clear all your doubts about closures in js and you will never have to find any other tutorial after this to understand function Closure and Garbage collection. 🔥
    The only request is to watch this Episode of Namaste JavaScript with full attention. 🙏
    My tech gear I use every day - google.peek.link/2pba
    Timestamps to Skip the video:
    00:00 - Don't skip anything 🙏
    Support this video series, NOT BY MONEY, but by sharing it with your friends. 🙏
    I'll give my best to come up with great content and everything absolutely for free on RUclips. 😊
    If you are active on Social Media,
    please give a shoutout to Namaste JavaScript and help me reach more people. 🙏
    Cheers,
    Akshay Saini
    akshaysaini.in
    Would love to Stay Connected with you ❤️
    LinkedIn - / akshaymarch7
    Instagram - / akshaymarch7
    Twitter - / akshaymarch7
    Facebook - / akshaymarch7
    #NamasteJS #AkshaySaini

Комментарии • 1,5 тыс.

  • @sougandikal6022
    @sougandikal6022 3 года назад +1255

    Closure :Function bundled with its lexical environment is known as a closure. Whenever function is returned, even if its vanished in execution context but still it remembers the reference it was pointing to. Its not just that function alone it returns but the entire closure and that's where it becomes interesting !! Thank you so much, Akshay for this :) :)

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

      Thanks

    • @pranjalrathod2158
      @pranjalrathod2158 3 года назад +6

      Buddy, was it necessary to be rude?

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

      You put it in beautiful words

    • @sss-kd9md
      @sss-kd9md 2 года назад +1

      @@pranjalrathod2158 rude? Who?

    • @pranjalrathod2158
      @pranjalrathod2158 2 года назад +10

      @@sss-kd9md that guy deleted the comment now. Let's ignore

  • @ogs3721
    @ogs3721 3 года назад +438

    Four things I like about Akshay.
    1) Doesn't try and speak in an American accent, like most Indian RUclips programmers.
    2) Passionate
    3) Someone with real knowledge.
    4) A talented teacher.

    • @akshaymarch7
      @akshaymarch7  2 года назад +55

      Love you! ♥️

    • @isaacprosper6295
      @isaacprosper6295 2 года назад +22

      hes very authentic,first time i thought he was quite weird owing to the fact that im not indian but now i cant get enough of his content

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

      That's what make him unique!

    • @us-xf3kk
      @us-xf3kk Год назад +9

      you mean Hitesh choudhary ?

    • @sanjaygangwar2508
      @sanjaygangwar2508 Год назад +1

      @@us-xf3kk 🤣

  • @farazhusain925
    @farazhusain925 3 года назад +325

    I've completed my master's in mechanical enginnering, 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.

    • @mrankushtechnical
      @mrankushtechnical 2 года назад +13

      Wow😂 bro..

    • @akshaymarch7
      @akshaymarch7  2 года назад +49

      Congratulations, Faraz. You’re inspiration to many! ♥️

    • @farazhusain925
      @farazhusain925 2 года назад +23

      @@akshaymarch7 Thanks bro. I've joined that company on 6th September. Apart from that, I got one more offer as front-end developer.

    • @kishorburkul3368
      @kishorburkul3368 2 года назад +5

      @@farazhusain925 i m looking for job as front end developer can you help me how to find it

    • @Indiankarnataka
      @Indiankarnataka 2 года назад +5

      @@farazhusain925 I am also looking for job as front end developer recently I have completed HTML CSS and JavaScript presently i am learning reactjs

  • @bhanuprasad4952
    @bhanuprasad4952 3 года назад +105

    My interviewer got impressed when I explained the way you explained. Dude you are a 💎.

  • @biltten5786
    @biltten5786 3 года назад +356

    Rest of the world : JS is hard and crazy
    Akshay : hold my green tea.

    • @AmrithMS
      @AmrithMS 3 года назад +5

      Hitesh: Hold my ice tea.

    • @kingzexperiment
      @kingzexperiment 3 года назад +6

      @@AmrithMS travery media....are u challenging me?

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

      @@kingzexperiment the new Boston..... focking noobs

    • @shubhsharma19
      @shubhsharma19 3 месяца назад

      javascript is the most beautiful language and typescript is legendary with those types

  • @shikharjoshi6349
    @shikharjoshi6349 3 года назад +509

    Bhaiya is high on JS 😂. More power to you.

  • @ls0359
    @ls0359 7 месяцев назад +13

    A closure gives access to all the variables of it's parent function even after the that parent function has returned or executed. The function keeps a refernce to it's outer scope which preserves the scope chain throughout the time

  • @veerendrajana6444
    @veerendrajana6444 2 года назад +19

    As a Mechanical Engineer, I'm really enjoying this course. The way you are explaining is simply superb.

  • @shivashankar6043
    @shivashankar6043 3 года назад +401

    Hi akshay, after complete the Namaste js playlist, please make a playlist for Namaste react. Tons of video out there for react, but your teaching will be easy to grab the core concepts. It's our kind request 🙏...

    • @prafulsinghvit
      @prafulsinghvit 3 года назад +16

      JavaScript itself is vast, but yeah once he completes that...may be he can put a udemy course for React.
      😀

    • @rupinkhandelwal
      @rupinkhandelwal 3 года назад +4

      That would be awesome!

    • @unknownworld4950
      @unknownworld4950 3 года назад +74

      Vote for reactjs :D

    • @CodeWithYubraj
      @CodeWithYubraj 3 года назад +48

      Voting for React and also for Node.JS and other backend technologies since this man is the only instructor that I have found who cares enough to go in depth and also show behind the scenes kind of stuffs.

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

      Yes pleaseeee

  • @jagrutsharma9150
    @jagrutsharma9150 2 года назад +5

    Things learned:
    1. Function bundled with lexical scope is called closure.
    2. Even if we return the function, it still remembers its original lexical environment and local storage so it can access values.
    3. If we write return function x(){.....} --- this automatically returns the value.
    4. The function that is returned is reference so any change in value of that variable inside function will be reflected as such.

  • @ufuomapokoh413
    @ufuomapokoh413 3 года назад +21

    this dude makes me fall in love with JS. And, yes. i'll never have to find another video on closures. thanks a million!

  • @MrMohfeez
    @MrMohfeez 2 года назад +10

    Bro!! two days back JS is a horror movie for me, now I started liking JS more, lexical scope video is awesome...thanks for your efforts, I like the way how you explain. Credit goes to you.

  • @nikhil6842
    @nikhil6842 3 года назад +72

    One step closer to Closure.
    Thank you Akshay, I cleared my JS interview because of your videos only.

    • @akshaymarch7
      @akshaymarch7  3 года назад +12

      Congratulations, brother! ❤️

    • @simcard2732
      @simcard2732 Год назад +1

      I am beginner please give some tips

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

      @@akshaymarch7 comment testing

  • @ssbrar
    @ssbrar 3 года назад +9

    i am backend developer and just started to explore frontend tools. No one can explain javascript better then you Sir. all the best, stay healthy and help us all junior developers to learn complicated things. Thanks .

  • @mudassirahmed6220
    @mudassirahmed6220 Год назад +1

    First time landed to your channel in my journey of two years learning and development and I really appreciate the way you explain I was searching for closure and have read blogs watched videos things was clear to me but I was seeking a good definition and you provided it. then explained it very well through the example. Keep it up. Wish you great luck for your future,

  • @jeannoelhonisch7037
    @jeannoelhonisch7037 Год назад +12

    i feel like that the creation phase/execution conext is like one of the most crucial concept in js... nearly everything is explainable by creationphase/hoisting and the scopes

  • @anupammanitripathi2731
    @anupammanitripathi2731 3 года назад +16

    Really explained well. I love the enthusiasm of your explanation and your expressions. Really excited for next video. Requesting to cover the topics of generators, iterators.

  • @technicalbhai235
    @technicalbhai235 3 года назад +65

    Topics should be covered. It can help the whole javascript community and me ofcourse.
    1. Promises
    2. async/await
    3. callbacks
    4. Polymorphism and inheritance in javascript
    5. Memoization
    6. Prototype

    • @akshaymarch7
      @akshaymarch7  3 года назад +55

      All of these are coming!! 💥

    • @sindhumadhyala5961
      @sindhumadhyala5961 2 года назад +7

      @@akshaymarch7 we are waiting for these topics

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

      @@akshaymarch7 i am also eagerly waiting for those topics

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

      @@akshaymarch7 waiting please upload the videos as soon as possible plz bro

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

      @Akshay Sani . Waiting for these too :)

  • @AmmarTheTrainer
    @AmmarTheTrainer Год назад +4

    One of the finest JavaScript tutorials available, it showcases the art of a talented teacher who effortlessly breaks down complex concepts into easily understandable content.

  • @priyanshumishra7900
    @priyanshumishra7900 3 года назад +6

    Brooo never seen anyone teaching online with that excitement!!! This is soo good! the content and the learning :))

  • @asifahmed6568
    @asifahmed6568 3 года назад +33

    Only Legends would Binge watch This series😎 #JS😘😀😁

  • @jeannoelhonisch7037
    @jeannoelhonisch7037 Год назад +7

    These videos are amazing. Its the depth, the enthusiasm, the great explainations etc….

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

    Reading Comments on your episodes are just like Goosebumps.. seriously coding is another thing and teaching is another. Your teaching skills are so simple matlab ye direct bheje mai nahi naso mai bhi chala jata hai aap ka sikhaya huaa... lots of ❤️❤️❤️

  • @ruditrahul3638
    @ruditrahul3638 3 года назад +27

    Bhaiya, Please don't ever delete this playlist!!!..This is super helpful and helps me revise it before the interview!!!!

  • @narendrakumariitb
    @narendrakumariitb Год назад +18

    Man how can a student not be excited if the teacher himself is so so much excited. Great video bro

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

    Really love your energy! Your content is really helping with my interviews!!

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

    I can watch these endlessly, every concept just go into grey matter effortlessly, for the first time I enjoyed learning anything this much ❤️❤️❤️

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

    Whoa! That really cleared up many of my misconceptions regarding closures! Thanks for this series man, it's really helping devs throughout the world!

  • @vijaykumarreddyalavala3713
    @vijaykumarreddyalavala3713 3 года назад +4

    Akshay Saini is on a mission to make all of us great at JS. Thank you so much man

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

    You make complex topics feel like a "Hello World" program 🙏. You truly have a knack for teaching.

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

    Love this video! Finally I understand what a closure is and can answer with confidence in interviews (I believe so)! and i love your passion and energy, which kept me so awake and attentive and happy! :) Thank you so much!

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

    You are an outstanding Guru !!! Before watching this video, I had watched 5,6 videos but could not understand anything, but you made me know this within minutes! You are a genius!!

  • @anshikapathak4422
    @anshikapathak4422 Год назад +2

    Thank-you Akshay. I love watching your videos. You are first and last my favourite instructor of js. Please keep making videos on js advance. I was watching my instructor video around 3 hours but didn't understand not even a single line but when I learnt from you. I understood easily.
    Kindly cover
    oops
    LLD
    Promise
    Fetch api these kind of topics too. So that we all be good at programing like you.🙏🙏🙏🙏🙌🙌🙌🙌🙌❤️❤️❤️🎉

  • @toskr-r4t
    @toskr-r4t Год назад +4

    Another seriously underrated JS channel. Clear and simple explanation. Thank you Namaste :)

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

    Coding from last 11 years and never seen this beauty of JS. Thank you so so much 💖

  • @adinfinitum03
    @adinfinitum03 6 месяцев назад +1

    Studied JS from alot of resources but this man made me fall in love with it , a true guru 🙏🏻, just remarkable

  • @mainakmondal8691
    @mainakmondal8691 3 года назад +5

    Best video on CLOSURE...the energy level and the content🔥🔥🔥...thanks a lot..😎😎

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

    Getting to learn a lot. Thank you so much for sharing your knowledge . This course is helping me a lot.

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

    I was trying to get this concept since morning by roaming here and there, saw many videos even in hindi which is our mother language and came across your video, and trust me i got it at once😍😍, I didn't had to play your video again and again, it's just your way of teaching is literally awesome and now I got a mentor... Thank you so much man,🥰 All i can feel is if a person could understand english language and still doesn't get what javascript really is by your videos, he/she is not meant for coding.

  • @ianpropst-campbell6028
    @ianpropst-campbell6028 Год назад +1

    Loved the video! Closure definition: a function bound together with its lexical environment. This means an inner nested function has access to its parents' lexical scope, and is able to remember variables the were declared in that environment, even after that functions has been removed from the call stack.
    You did a very good job of explaining this. I think I've got a ways to go before I totally understand all this stuff though :P

  • @peak-naik
    @peak-naik 3 года назад +35

    Damn bruh! It got aggressive real quick!!!
    Reminds me of that Maths teacher yelling at the screen 😂

  • @shivam12326
    @shivam12326 3 года назад +17

    11:25 I am watching js video along with some cool drama show 🤣🤣. I was watching your video because of js and my sister in class 10 was watching you because of your funny expression.

    • @akshaymarch7
      @akshaymarch7  3 года назад +15

      Hahaha 😂
      Ask her to subscribe for more drama. 😂

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

    I watched 3 videos to understand closures and I was lost, but finally understood here, the way you covered every single thing... It is really very helpful. Thank you!

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

    Your teaching skills have made js more interesting for me.I feel so excited to watch every video of namaste javascript.Thank you!

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

    I have been watching his videos in incognito (just the way I am), and didn't even think of liking videos and stuff. but the moment of GREEN TEA. Man, that literally made me open the video in main window, just to comment this. Akshay, you never fail to make videos interesting, be with the kind of energy you put into and the way of explaining things. Nice work. Green Tea man. LOL.

  • @simrankoul
    @simrankoul 3 года назад +26

    I have nothing to do with JS, and yet I am watching this as if my life thrives upon it.
    Going great like always! 🤗🤗

    • @akshaymarch7
      @akshaymarch7  3 года назад +5

      Thank you so much, Simran 🤗

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

    We are pretty much having fun following your course bro! May the ❤ for JS spread across the world.

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

    Thanks to you explaining these topics so well with practical applications in the browser. It helped me a lot understanding how things work behind the scene in JS. Very excited to finish watching this whole playlist.

  • @kiruthigarani4850
    @kiruthigarani4850 2 года назад +8

    Today i have seen this chapter and attended an interview. I had a question about closure and i was so excited to answer it, done it successfully but the 2nd question in closure was let scope
    function a (){

    function b{
    let x = 3;
    }
    function c{
    let y = 4;
    }
    function d{
    console.log(x,y)
    }
    }
    now how to change this code to access the x and y variables inside d(), I simply told change let to var, but the suggested answer was we can write like below
    function a (){
    function b{
    let x = 3;
    function c{
    let y = 4;
    function d{
    console.log(x,y)
    }
    }
    }
    }
    However, this helps me lot. :)

    • @neerajatokekar1079
      @neerajatokekar1079 2 года назад +2

      Changing let to var will not work as var is 'function scoped' so we cannot access it outside the function.

  • @shaileshparmar3973
    @shaileshparmar3973 3 года назад +15

    The excitement level is the dam high

    • @mohit96nain
      @mohit96nain 3 года назад +4

      I was looking for this comment, checking whether it mee or someone else also thinking the same 😂♥️

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

      @@mohit96nain yo bro 🤣

    • @KamranKhan-xv4br
      @KamranKhan-xv4br 3 года назад +1

      @@mohit96nain mee too, thinking of it same 😅

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

    Broo with this excitement i havent seen anyone teaching like this ... its just flawless and easy to grab everything 😍..thank you!

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

    simply blown away , no words can express my gratitude to you for this series

  • @akarshsrivastava8890
    @akarshsrivastava8890 3 года назад +30

    Finally, today I can sleep peacefully. We won over closure after watching this video. 😅

  • @swapnil12123
    @swapnil12123 2 года назад +5

    I regularly take interviews, give interviews, I have event watched the entire Namaste JS series multiple times. Still came to this video like 10th may be 12th time to revise closures. This is highly satisfying knowledge. Thanks a lot @Akshay. More power to you :)

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

    Superb playlist,I have just started leaning javascript and its amazing that m getting my concepts crystal clear because of this,thanks alottt,and yes m enjoying the playlist and want more content like this,thank you.

  • @DurgeshYadav-bc5nm
    @DurgeshYadav-bc5nm 2 года назад

    I used to be this mush excited about javascript, but now i am kinda stuck with .net core for a while. But i absolutely love javascript and closures. watched this videos because of the good old memories. Nostalgic!! Still remember the way i explained it to my juniors

  • @chrispusthiaine3735
    @chrispusthiaine3735 2 года назад +5

    Namasty Bro. I think you're impacting more knowledge than most schools🙏🙏🙏

  • @rhimanshu6288
    @rhimanshu6288 3 года назад +6

    "Microservices architechture", I think you should cover this, reason being most of us are very confused about what it actually is, how to use it and where??

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

    Akshay what you are doing is just next level,no one explains the concepts deeply.thank you so much for these videos.

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

    The way you explain it seems the js is in your nerves and it's flowing. It also seems you are teaching yourself, I have seen many videos regarding JS but no one tried and dedicatedly explained the way you are. Keep growing, learning and teaching.

  • @prajjwalsahu793
    @prajjwalsahu793 3 года назад +6

    If the video would have been 3 hours long I would have seen it with full enthusiasm.
    Thanks Akshay sir.
    Keep posting.

  • @sushmagoswami2928
    @sushmagoswami2928 3 года назад +36

    I was waiting for this since long 😃 Today I will sleep well ✨

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

    This video literally deserves a million likes, not even kidding.
    Thank you so much making it so simple to understand, sir!

  • @_TatineeSarker
    @_TatineeSarker 10 месяцев назад

    Your videos are so well explained yet concise. You rock, man! Thanks for contributing and giving back!

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

    How tough the subject is. Its not a matter. If we find a good master. We can make it! Akshay a legend! My master u r! I m learning js. One day definitely will get a job.i will put in this comment box.credits to u master!

  • @akshaymarch7
    @akshaymarch7  3 года назад +40

    Next Video: setTimeout + Closures Interview Question 🔥 - ruclips.net/video/eBTBG4nda2A/видео.html
    Kaisa laga video? Are you feeling excited? Let me know in the comments below. ❤️

    • @AdarshSingh-qd6mq
      @AdarshSingh-qd6mq 3 года назад

      awesome video, earlier for long i am running from JS but now truly i am enjoying learning JS and exploring more, tons of thanks to you...

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

      Thank you, it is a great help, I am preparing for the interview for the role of a frontend developer.
      I was waiting for this topic for so long since you have covered it is a great help.

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

      Jhakaas jhakaas jhakaas

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

      Great. The way you teaching is Great.

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

      Amazing and very detailed as always..😊😊

  • @preslavgetov1330
    @preslavgetov1330 2 года назад +2

    Probably the most concise explanation of closures. Awesome teaching!

  • @sagarshekhar6296
    @sagarshekhar6296 3 месяца назад

    Mujhe Closure kisi aise hi passionate instructor se samjh aa sakta tha.....Thanks man

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

    I recently started Javascript , i have previously worked with Java , Php , C++ and shell scripting. I was having tough time with javascript. Even the simplest operation which work in other languages were behaving differently in JS. Recently i was look for delegation in Javascript, I watched many videos but had no clue what delegation was and then i came upon your video of JS delegation and you explained it so well . Then i started Namaste JavaScript its amazing you explain concepts so well and with the knowledge of new concepts i was able to figure out why JS was giving me trouble in simple code. I think Namaste JavaScript should be made mandatory for people coming to javascript with previous programming experience.

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

      And you look and sound like my classmate....

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

    I

  • @nikhildeepsingh2832
    @nikhildeepsingh2832 Год назад +1

    A function along with its lexical environment forms a closure. Lexical scope means the references that function was associated with, which means that whenever a function forms a closure it is bound to remember the references it was created with initially(the part in the code where it is called does not matters in case of closures
    )

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

    Finally I understood what exactly the closure is.
    The way you explained this concept is 🔥.
    I am lovin' this series

  • @aayushipandey7292
    @aayushipandey7292 3 года назад +17

    He literally treats people who learn other languages as aliens! :D Indeed JS is beautiful.

  • @0xFOXHOUND
    @0xFOXHOUND 3 года назад +49

    For revision :
    Q)What is closure?
    A)The function bundled with its lexical environment closed to that function
    simply function + Lexical environment
    and closures have very special place in runtime environment
    The fun in JavaScript is you can assign a variable for a function and also you can pass function as a parameter even you can return the function in JavaScript!!
    Myself : ruclips.net/video/74hA6Q7vPI4/видео.html
    Q)What does the closure do in my JavaScript programs?
    A) Whenever I call a function in JavaScript the closure maintains its values(lexical env.) and function in its own runtime and when that specific function executed, it returns with own environment even the variable vanished after its execution
    11:36 : Simaran! because is on Diet
    13:54 : as variable value is changed before executing the return (the function) Value will be 100
    In closures, values in variable are 'pass by reference' hence there values can be changed, and whenever comes the closure inside closure(multilevel one) we can see the function refers the 'parent' variable
    My Response 21:38

    • @pekalarajesh6147
      @pekalarajesh6147 9 месяцев назад

      @0xFOXHOUND
      hello bro can u please explain me why we got the value as 100...not 7
      at 13:30

    • @ajinkyavidwans4134
      @ajinkyavidwans4134 8 месяцев назад

      @@pekalarajesh6147 Since the assignment of the value '100' was after the declaration of the function 'y', but was before the actual function call. When the function 'x' was executed, the assignment 'a = 100' was processed, and the reference to 'a' is what persists, not the actual value at 'a'.

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

    the excitement in his voice makes this video enjoyable while learning!

  • @user-sn8fl5pk1v
    @user-sn8fl5pk1v Год назад

    지렸습니다 진짜 이정도로 깨우쳤다는 느낌을 받은 것은 처음입니다 속이 시원하네요 감사합니다

  • @vinothkumarv9722
    @vinothkumarv9722 3 года назад +5

    Vinoth love❤️ >> Akshay:
    One thing i forgot to inform bro dress code And hairstyle is awesome
    And finally End music is Vera level :)

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

    Kudos for explaining this important concept.
    But mentioning things like y remembers the reference of a is vague, better will be to mention how a is stored in memory and how y is able to acess that reference outside x.

  • @Kamal-216
    @Kamal-216 2 года назад +1

    The way of explanation is awesome Akshay bro.. It gives us to feel like the much interactive session. Definitely I will refer to my friends. Thanks a bundle for your great time on these beautiful videos

  • @shigufaaaliya5924
    @shigufaaaliya5924 29 дней назад

    I'm thoroughly enjoying learning from your Namaste Javascript series! Your videos are incredibly helpful, and I'd love to see more of them. Could you please consider creating a series on Namaste Angular as well? It would be fantastic to delve deeper into this topic with your guidance!

  • @thriftykapila8420
    @thriftykapila8420 3 года назад +18

    Me (30 mins before interview) - Note that, note that!!!

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

    I have watched 1000 videos before this and i can guarantee you i will not watch again any video of closure again . Thanks Akshay

  • @sarveshkulkarni6287
    @sarveshkulkarni6287 3 месяца назад

    Watching it for second time , with same amount of satisfraction , Your teaching way if so unique that , Your definations just hit the mid point of the brain which saves the content automatically !

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

    Thank you for simplifying this topic. It was one of my interview questions and couldn't answer. After watching this video, I'm more confident with closures.

  • @vgcordys
    @vgcordys 3 года назад +5

    Chitvan(Hope you know the legend): Baba, you are beautiful
    Akshay: JavaScript, you are beautiful 😃

  • @AmanMishra-pn3cq
    @AmanMishra-pn3cq 2 года назад +9

    Things Learned:
    1. Function bundled with its lexical environment is known as a closure.
    2. Whenever function is returned, even if its vanished in execution context but still it remembers the reference it was pointing to. Its not just that function alone it returns but the entire closure and that's where it becomes interesting.

  • @Mrnileshagarwal
    @Mrnileshagarwal 7 месяцев назад

    Literally got goosebumps at some point when the concept was so much well explained by you and so well understood by me! Awesome way of explaining things man :D . Also when you requested to give a like on this video, thought If I could contribute some money for your videos because these videos reaching to me without any cost(sorry for adBlocker) is pretty undigestable.

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

    Prior to this video, I was expecting closure a rocket science, but Akshay made it so simple. Just amazing

  • @ramraghunathan947
    @ramraghunathan947 3 года назад +26

    UPDATE : SERIOUSLY GOT A JOB BECAUSE OF THIS ! NOT KIDDING THIS TIME !
    Went to an interview.
    Interviewer: Write an example of closure.
    Me: Wrote down this example
    Interviewer: Namaste Javascript ? 🤨
    Me: 😐
    Interviewer: Even I have the same example in mind.
    High five'd each other. Happily working ever after 🥳🥳🥳

  • @outzonegaming4554
    @outzonegaming4554 3 года назад +5

    Dude, nice hairstyle and video.

  • @Abhishek-ko8bf
    @Abhishek-ko8bf 3 года назад +1

    You are diamond 💎 sir with no doubt .continue this way teaching .I never boarded with your series

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

    The best explanation ever 💯💯 I have learned more concepts in this series as well as how can I share my knowledge in front of interviewer🤝 I'm still watching videos in loop and every time I'm getting new idea's out of these example🤍 Thank you so much Akshay guru ji🙏

  • @nerdycap7513
    @nerdycap7513 3 года назад +4

    It wasn't a green tea, it was a cocktail of JS pills, cocaine, and steroids. The man is on a killing spree in this video. Great fuckin' work!

  • @cb559
    @cb559 3 года назад +7

    Senior and cool developers disliked the video because they still didnt get it !

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

    Your approach of giving an info is just amazing, don't know would I understand if not you! thanks!

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

    The best JS video.....I have ever watched....Engaging, fun, and very well explained. Many thanks!

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

    Sir react series

  • @Prakhar281993
    @Prakhar281993 3 года назад +4

    1:30 you sounded like Arnab Goswamy

  • @c.s.froggis9982
    @c.s.froggis9982 2 года назад

    I love your enthusiasm and your crystal clear explanations. I am now getting excited too!

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

    I feel like a javascript God came in my life. Previously I feel like why this is happening now points clear and things are really in good shape and keeps on moving. You are sooper dooper real hero of javascript hats off👒