Javascript interview | Closure

  Рет қаралды 35,519

Hitesh Choudhary

Hitesh Choudhary

Жыл бұрын

Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
All the learning resources such as code files, documentations, articles and community discussions are available on our website:
chaicode.com/
You can find our discord link, github link etc on the above website.
Twitter/X link: x.com/hiteshdotcom
Discord link: hitesh.ai/discord
Learn React with 10 projects: • Let's learn react from...
Learn Docker: • A practical guide on D...
Learn Kubernetes: • Complete Kubernetes Co...
How does a browser works: • How does a browser wor...
How nodejs works: • How node JS works | En...
Learn Redux-toolkit: • Learn Redux Toolkit in...
Learn NextJS: • Nextjs Full stack course
Learn Typescript: • Why to learn Typescript
Learn Javascript: • Welcome to new JavaScr...
Learn React Native: • React Native Mastery: ...
Learn Zustand: • React state management...
Learn Golang: • How to get started wit...

Пікірлер: 164
@manishkumar3902
@manishkumar3902 Жыл бұрын
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
@ankan-dev
@ankan-dev Жыл бұрын
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.
@prakashagrahari3717
@prakashagrahari3717 Жыл бұрын
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
@rahulkr7349
@rahulkr7349 Жыл бұрын
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.
@pranaypaul6361
@pranaypaul6361 6 ай бұрын
simply awesome...wont forget Closure ever...art of simplifying stuff....
@devjourney6209
@devjourney6209 Жыл бұрын
Great explanation, you are such a good mentor. Your efforts won't be wasted, we're all learning on your paths.
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Happy to know that
@rajeshbhattarai5934
@rajeshbhattarai5934 Жыл бұрын
Really loved it. Please continue the series 🚀
@raunakjain7582
@raunakjain7582 Жыл бұрын
Please being more videos. They're extremely informative. Love the knowledge you share.
@VivekVerma-oo3dx
@VivekVerma-oo3dx 4 ай бұрын
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
@ujjawalchatterjee
@ujjawalchatterjee Жыл бұрын
This went so smooth. Great explanation 👌. Please bring more such videos.
@diveshthakre5181
@diveshthakre5181 Жыл бұрын
You made closure very easy to understand in very short time period. Gereat video sir, 💯.
@kobiowuquadri9458
@kobiowuquadri9458 5 ай бұрын
Thank you so much, Hitesh, I really love your way of teaching Well explained. I understand CLOSURE well now.
@bhargavirajanala9357
@bhargavirajanala9357 Жыл бұрын
Great explaination! Please explain promises and callbacks and please continue to make such videos on js interview preparation.
@himanshu12121995
@himanshu12121995 Жыл бұрын
Hello I want to know, is there any next video coming in this playlist?
@anilraj2032
@anilraj2032 Жыл бұрын
Really your doing great help / service to the new aspirants also Experienced
@suman6476
@suman6476 Жыл бұрын
Awesome explanation with realtime example, keep notifying us with new topics of JS, Thanks for this.
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Surely
@chinmaymeghare9414
@chinmaymeghare9414 Ай бұрын
The Best Explanation so far!!!
@Sarvesh_Coder
@Sarvesh_Coder Жыл бұрын
Getting more confidence in Closure, really amazing video and well explained sir!
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
That’s exactly what you need in interviews
@ankitrai3792
@ankitrai3792 Жыл бұрын
Great explanation Sir , we need more video like this on Javascript or on Reactjs
@khalid_aziz.
@khalid_aziz. Жыл бұрын
Simplest Explanation Ever about Closures 💥. Keep posting concepts like this ❤️
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
For sure
@samirkha
@samirkha 5 ай бұрын
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.❤
@abhinavmodi3311
@abhinavmodi3311 Жыл бұрын
This was really great; thank you
@ranjitbudhathoki8852
@ranjitbudhathoki8852 Жыл бұрын
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?
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Exactly. Usually, that’s how interviews pivots to lexical scope. This was focused on practical use case
@ayushkarki1880
@ayushkarki1880 Жыл бұрын
😀😀😀
@sakshirana5304
@sakshirana5304 10 ай бұрын
Thank you so much ❤❤ for giving us this awesome video ❤
@ankushladani496
@ankushladani496 Жыл бұрын
Thank you sir for this series.....💯🔥💯🔥
@rasikaraja1840
@rasikaraja1840 10 ай бұрын
I am lucky guy who got to know about you videos. Thanks for the content.
@CmoiAloa
@CmoiAloa 8 ай бұрын
Thank you for your explain, it's very clear to understand. thanks for the sharing your knowledge 👍👍
@pratiksukhe8560
@pratiksukhe8560 Жыл бұрын
very nice explanation sir. Thank you so much. please make full pledged javascript-nodejs interview series.🤩🤩
@madavraj5547
@madavraj5547 Жыл бұрын
A small query . Is all function a closure?
@sidharthajobies6
@sidharthajobies6 3 ай бұрын
Thank you Sir. Could you please make more content just like this for Javascript interview preparation?
@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
@user-br2oe5mc1p
@user-br2oe5mc1p Жыл бұрын
thank you for the explantation, very clear for me
@vinayaksharma5789
@vinayaksharma5789 Жыл бұрын
Sir definately we need more videos like this one 😇🙌
@drh374
@drh374 11 ай бұрын
hey! i want to purchase your udemy course on Pro backend, i want to know if you ever update it
@Sanjay-ie4ui
@Sanjay-ie4ui Жыл бұрын
Please continue... hitesh sir it will be really helpful for us and BTW 4K quality is awesome as your teaching
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
4k rocks
@Sarvesh_Coder
@Sarvesh_Coder Жыл бұрын
@@HiteshChoudharydotcom ur explaination also rocks!
@rajkishan3690
@rajkishan3690 Жыл бұрын
Very well explained.Thank you ❤
@nitin_agrawal
@nitin_agrawal Жыл бұрын
Can't we just use the arrow function for that instead of using that closure? @hitesh. Love your videos
@shivanggupta7853
@shivanggupta7853 Жыл бұрын
Please make more interview question series on JavaScript.
@ankiTKumar-cl7yt
@ankiTKumar-cl7yt Жыл бұрын
Sir please make a video on event loop and how it works internally
@ronnyroy3062
@ronnyroy3062 Жыл бұрын
Please make video tutorials on Ruby On Rails Technology
@tomjones8293
@tomjones8293 Жыл бұрын
what is the relationship between closure and decorator ? now that's not easy
@ProgrammingWithProject
@ProgrammingWithProject Жыл бұрын
please continue this series what the design pattern as a javascript we should know
@samruddhisam1636
@samruddhisam1636 Жыл бұрын
Thanku so much today i understood wat is closure after few interviews
@allaboutweb4881
@allaboutweb4881 Жыл бұрын
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.
@shikharsingh3961
@shikharsingh3961 4 ай бұрын
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.
@singh.aadarsh
@singh.aadarsh Жыл бұрын
Amazing.keep it on
@No_way-Yash
@No_way-Yash Жыл бұрын
Love your Voice and accent , KEEP POSTIN
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Thanks
@gokulans168
@gokulans168 Жыл бұрын
Please make it for higher order functions and currying 🙏 and would be great if you also explain about nodejs engine 😁
@mominwani9059
@mominwani9059 Жыл бұрын
its simply the best! Sir
@kritisharma4653
@kritisharma4653 Жыл бұрын
great explaination!!!
@nikitadeshpande4898
@nikitadeshpande4898 Жыл бұрын
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 ❤️
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Thanks 😁
@user-hu2di8sp1o
@user-hu2di8sp1o 26 күн бұрын
Super helpful 👍🏻👍🏻👍🏻😀
@pramodjadhav3040
@pramodjadhav3040 Жыл бұрын
Loved your video 😍 please bring more
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
More to come!
@soumadip_skyy_banerjee
@soumadip_skyy_banerjee Жыл бұрын
We need a JS interview series! Plz ❤️
@meexploringnow1416
@meexploringnow1416 Жыл бұрын
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. 👍☺️
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
That’s exactly the goal
@pyshivam
@pyshivam Жыл бұрын
Please continue the series, we want js interview series!!!!!
@5Nkolo
@5Nkolo 15 күн бұрын
Thank you very much sir.
@kamisettylokesh3156
@kamisettylokesh3156 Жыл бұрын
Helpful, pls do more videos
@imamansoni
@imamansoni Жыл бұрын
Interview questions are hot topic, please do make this type of videos 👍
@25santhu
@25santhu Жыл бұрын
Perfect, thanks!!
@codenerd7061
@codenerd7061 Жыл бұрын
Great please continue
@hitesh-patil
@hitesh-patil Жыл бұрын
This is the most relevant series I believe.
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Then it definitely deserves to be shared
@shivanand0297
@shivanand0297 Жыл бұрын
much needed sir, please bring more of these videos
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Absolutely
@yashsingh3819
@yashsingh3819 Жыл бұрын
Hi sir. I hear about Hero Campus Challenge. 20 lakhs is there in prizes also. Please make a video on that sir.
@SikharKrBhuyan
@SikharKrBhuyan Жыл бұрын
please make videos like this with intermediate to advanced concept
@vinodkumar-sm6tl
@vinodkumar-sm6tl Жыл бұрын
In deapth and the easiest way explained about clouser thank you sir I refreshed my knowledge.
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Happy to help
@muskandodmani3579
@muskandodmani3579 3 ай бұрын
That was really helpful!! Thanks a lot. Could you please share at least 2 examples so that we can grasp it completely.
@piyushmanichaubey4305
@piyushmanichaubey4305 Жыл бұрын
Awesome 😎
@radhakrishnan7285
@radhakrishnan7285 Жыл бұрын
Neatly explained.. ☺️
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Thanks
@user-hu2di8sp1o
@user-hu2di8sp1o 26 күн бұрын
Great 🎉🎉🎉
@An-kitttt
@An-kitttt 11 ай бұрын
make more video on javascript interview questions..
@prasankumar4306
@prasankumar4306 Жыл бұрын
Sweet and simple
@prateekdubey7980
@prateekdubey7980 Жыл бұрын
Wonderful
@anuragjaiswal4535
@anuragjaiswal4535 Жыл бұрын
What is higher order functions in javascript ?
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Added to todo
@user-dt3cc9uv1o
@user-dt3cc9uv1o Жыл бұрын
we love your videos
@YouAndImpact
@YouAndImpact Жыл бұрын
Great 👍
@akhandpratapsinghhbtu9622
@akhandpratapsinghhbtu9622 Жыл бұрын
Please continue this….🎉
@manemanoj3068
@manemanoj3068 Жыл бұрын
Yes please bring such content daily
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
I will try but daily is challenging, quality takes time
@shubhamk1111
@shubhamk1111 Жыл бұрын
please come up with more such interview questions🤩
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
For sure
@bharatrozodkar8956
@bharatrozodkar8956 Жыл бұрын
Please make such more videos
@moviemeniaworld
@moviemeniaworld Жыл бұрын
yes please make such videos
@Ankitsarwal
@Ankitsarwal 2 ай бұрын
Sir please start a series for interview preparation
@MeetR-pe7oy
@MeetR-pe7oy Жыл бұрын
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 .
@mailtodanish
@mailtodanish Жыл бұрын
very well explained .... actually it is returning address of function to onclick.
@farazmobin2776
@farazmobin2776 Ай бұрын
please make more videos on js interview questions
@ksaha9325
@ksaha9325 Жыл бұрын
Really helpful
@jiteshtechbeast
@jiteshtechbeast Жыл бұрын
This man is ❤❤❤
@lokeshthecodingguy7747
@lokeshthecodingguy7747 Жыл бұрын
Please continue this seris and also for react
@dharanshneema669
@dharanshneema669 Жыл бұрын
I am not goanna forget what Clouser is in my entire life.
@aarya5122
@aarya5122 Жыл бұрын
✨ Crystal clear example ✨
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Thanks
@GurwinderSingh-bo5fi
@GurwinderSingh-bo5fi Жыл бұрын
impressive
@resumewala5177
@resumewala5177 Жыл бұрын
Yes Do more topics
@mdtareq1899
@mdtareq1899 Жыл бұрын
we want more topics like ,async await ,callbacks ,promises snd all
@venkatchalam6385
@venkatchalam6385 Жыл бұрын
Yes sir continue this series it's very useful content for all of us, especially explanation. why sir JavaScript marathaon stop?
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
It was mentioned in last video of that series. It was not adding value
@paritoshchaudhary8490
@paritoshchaudhary8490 Жыл бұрын
Hi, Sir Please make more video javascript interview questions.
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Absolutely
@Rishusrivastava519
@Rishusrivastava519 Жыл бұрын
Yes sir please make this type of tutorial
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
👍
@itsmesohit
@itsmesohit Жыл бұрын
Please complete this interview series
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
This will be open ended series
@AshishRaj-ls9cb
@AshishRaj-ls9cb Жыл бұрын
Interview q on some basic sql commands
@bibinjaimon
@bibinjaimon Жыл бұрын
🔥🔥
@sarthak_cp
@sarthak_cp Жыл бұрын
Please make this series sirr....
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Already on it
Lexical scoping and Closure | chai aur #javascript
26:48
Chai aur Code
Рет қаралды 75 М.
Higher Order Function | javascript interview series
11:46
Hitesh Choudhary
Рет қаралды 29 М.
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 31 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 161 МЛН
Why this is perfect time to learn AI
14:16
Hitesh Choudhary
Рет қаралды 41 М.
Closure in javascript
10:49
Hitesh Choudhary
Рет қаралды 41 М.
Beginner React.js Coding Interview (ft. Clément Mihailescu)
36:31
Ben Awad
Рет қаралды 2,1 МЛН
Crowdstruck (Windows Outage) - Computerphile
14:42
Computerphile
Рет қаралды 102 М.
10 JavaScript Interview Questions You HAVE TO KNOW
13:41
James Q Quick
Рет қаралды 49 М.
Это - iPhone 16 и вот что надо знать...
17:20
Overtake lab
Рет қаралды 109 М.
😱Хакер взломал зашифрованный ноутбук.
0:54
Последний Оплот Безопасности
Рет қаралды 981 М.