Javascript interview | Closure

  Рет қаралды 34,339

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...

Пікірлер: 160
@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
@pranaypaul6361
@pranaypaul6361 5 ай бұрын
simply awesome...wont forget Closure ever...art of simplifying stuff....
@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.
@SarathChandran96
@SarathChandran96 Жыл бұрын
I am working as React developer for the last 2 years. Now only i know that there is something called closure in javascript 😆
@rajeshbhattarai5934
@rajeshbhattarai5934 Жыл бұрын
Really loved it. Please continue the series 🚀
@diveshthakre5181
@diveshthakre5181 Жыл бұрын
You made closure very easy to understand in very short time period. Gereat video sir, 💯.
@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
@samirkha
@samirkha 3 ай бұрын
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.❤
@raunakjain7582
@raunakjain7582 Жыл бұрын
Please being more videos. They're extremely informative. Love the knowledge you share.
@ujjawalchatterjee
@ujjawalchatterjee Жыл бұрын
This went so smooth. Great explanation 👌. Please bring more such videos.
@suman6476
@suman6476 Жыл бұрын
Awesome explanation with realtime example, keep notifying us with new topics of JS, Thanks for this.
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Surely
@kobiowuquadri9458
@kobiowuquadri9458 4 ай бұрын
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.
@khalid_aziz.
@khalid_aziz. Жыл бұрын
Simplest Explanation Ever about Closures 💥. Keep posting concepts like this ❤️
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
For sure
@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
@anilraj2032
@anilraj2032 Жыл бұрын
Really your doing great help / service to the new aspirants also Experienced
@chinmaymeghare9414
@chinmaymeghare9414 6 күн бұрын
The Best Explanation so far!!!
@ankitrai3792
@ankitrai3792 Жыл бұрын
Great explanation Sir , we need more video like this on Javascript or on Reactjs
@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 😁
@rasikaraja1840
@rasikaraja1840 8 ай бұрын
I am lucky guy who got to know about you videos. Thanks for the content.
@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!
@vinayaksharma5789
@vinayaksharma5789 Жыл бұрын
Sir definately we need more videos like this one 😇🙌
@ankushladani496
@ankushladani496 Жыл бұрын
Thank you sir for this series.....💯🔥💯🔥
@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
@sakshirana5304
@sakshirana5304 8 ай бұрын
Thank you so much ❤❤ for giving us this awesome video ❤
@pratiksukhe8560
@pratiksukhe8560 Жыл бұрын
very nice explanation sir. Thank you so much. please make full pledged javascript-nodejs interview series.🤩🤩
@soumadip_skyy_banerjee
@soumadip_skyy_banerjee Жыл бұрын
We need a JS interview series! Plz ❤️
@CmoiAloa
@CmoiAloa 6 ай бұрын
Thank you for your explain, it's very clear to understand. thanks for the sharing your knowledge 👍👍
@hitesh-patil
@hitesh-patil Жыл бұрын
This is the most relevant series I believe.
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Then it definitely deserves to be shared
@sidharthajobies6
@sidharthajobies6 Ай бұрын
Thank you Sir. Could you please make more content just like this for Javascript interview preparation?
@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 Жыл бұрын
😀😀😀
@No_way-Yash
@No_way-Yash Жыл бұрын
Love your Voice and accent , KEEP POSTIN
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Thanks
@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 .
@imamansoni
@imamansoni Жыл бұрын
Interview questions are hot topic, please do make this type of videos 👍
@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
@shivanand0297
@shivanand0297 Жыл бұрын
much needed sir, please bring more of these videos
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Absolutely
@samruddhisam1636
@samruddhisam1636 Жыл бұрын
Thanku so much today i understood wat is closure after few interviews
@pyshivam
@pyshivam Жыл бұрын
Please continue the series, we want js interview series!!!!!
@ProgrammingWithProject
@ProgrammingWithProject Жыл бұрын
please continue this series what the design pattern as a javascript we should know
@abhinavmodi3311
@abhinavmodi3311 Жыл бұрын
This was really great; thank you
@rajkishan3690
@rajkishan3690 Жыл бұрын
Very well explained.Thank you ❤
@user-br2oe5mc1p
@user-br2oe5mc1p Жыл бұрын
thank you for the explantation, very clear for me
@manemanoj3068
@manemanoj3068 Жыл бұрын
Yes please bring such content daily
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
I will try but daily is challenging, quality takes time
@muskandodmani3579
@muskandodmani3579 2 ай бұрын
That was really helpful!! Thanks a lot. Could you please share at least 2 examples so that we can grasp it completely.
@pramodjadhav3040
@pramodjadhav3040 Жыл бұрын
Loved your video 😍 please bring more
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
More to come!
@mominwani9059
@mominwani9059 Жыл бұрын
its simply the best! Sir
@aarya5122
@aarya5122 Жыл бұрын
✨ Crystal clear example ✨
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Thanks
@shivanggupta7853
@shivanggupta7853 Жыл бұрын
Please make more interview question series on JavaScript.
@gokulans168
@gokulans168 Жыл бұрын
Please make it for higher order functions and currying 🙏 and would be great if you also explain about nodejs engine 😁
@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
@VivekVerma-oo3dx
@VivekVerma-oo3dx 3 ай бұрын
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
@nitin_agrawal
@nitin_agrawal Жыл бұрын
Can't we just use the arrow function for that instead of using that closure? @hitesh. Love your videos
@shikharsingh3961
@shikharsingh3961 2 ай бұрын
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.
@jiteshtechbeast
@jiteshtechbeast Жыл бұрын
This man is ❤❤❤
@ManlyMotors
@ManlyMotors Жыл бұрын
please make videos like this with intermediate to advanced concept
@codenerd7061
@codenerd7061 Жыл бұрын
Great please continue
@radhakrishnan7285
@radhakrishnan7285 Жыл бұрын
Neatly explained.. ☺️
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Thanks
@akhandpratapsinghhbtu9622
@akhandpratapsinghhbtu9622 Жыл бұрын
Please continue this….🎉
@mailtodanish
@mailtodanish Жыл бұрын
very well explained .... actually it is returning address of function to onclick.
@kritisharma4653
@kritisharma4653 Жыл бұрын
great explaination!!!
@singh.aadarsh
@singh.aadarsh Жыл бұрын
Amazing.keep it on
@user-dt3cc9uv1o
@user-dt3cc9uv1o 11 ай бұрын
we love your videos
@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.
@dharanshneema669
@dharanshneema669 Жыл бұрын
I am not goanna forget what Clouser is in my entire life.
@himanshu12121995
@himanshu12121995 Жыл бұрын
Hello I want to know, is there any next video coming in this playlist?
@ankiTKumar-cl7yt
@ankiTKumar-cl7yt Жыл бұрын
Sir please make a video on event loop and how it works internally
@shubhamk1111
@shubhamk1111 Жыл бұрын
please come up with more such interview questions🤩
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
For sure
@25santhu
@25santhu Жыл бұрын
Perfect, thanks!!
@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
@mdtareq1899
@mdtareq1899 Жыл бұрын
we want more topics like ,async await ,callbacks ,promises snd all
@ronnyroy3062
@ronnyroy3062 Жыл бұрын
Please make video tutorials on Ruby On Rails Technology
@tomjones8293
@tomjones8293 10 ай бұрын
what is the relationship between closure and decorator ? now that's not easy
@piyushmanichaubey4305
@piyushmanichaubey4305 Жыл бұрын
Awesome 😎
@kamisettylokesh3156
@kamisettylokesh3156 Жыл бұрын
Helpful, pls do more videos
@YouAndImpact
@YouAndImpact Жыл бұрын
Great 👍
@prasankumar4306
@prasankumar4306 Жыл бұрын
Sweet and simple
@Ankitsarwal
@Ankitsarwal Ай бұрын
Sir please start a series for interview preparation
@moviemeniaworld
@moviemeniaworld Жыл бұрын
yes please make such videos
@NaveenKumar-xq6ce
@NaveenKumar-xq6ce Жыл бұрын
Awesome example and one that explains the core use case. I know you had trouble recording this video😅. Thanks anyway
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Instagram folks 😁
@resumewala5177
@resumewala5177 Жыл бұрын
Yes Do more topics
@yashsingh3819
@yashsingh3819 Жыл бұрын
Hi sir. I hear about Hero Campus Challenge. 20 lakhs is there in prizes also. Please make a video on that sir.
@prateekdubey7980
@prateekdubey7980 Жыл бұрын
Wonderful
@devpavagadhi
@devpavagadhi Жыл бұрын
we want like this kind of session
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
On it
@devpavagadhi
@devpavagadhi Жыл бұрын
Thank you sir❤️‍🔥
@madavraj5547
@madavraj5547 11 ай бұрын
A small query . Is all function a closure?
@subramanyashegade8248
@subramanyashegade8248 Жыл бұрын
a pure Function returning itself, basically recursion is also a closure ,i guess
@An-kitttt
@An-kitttt 9 ай бұрын
make more video on javascript interview questions..
@ksaha9325
@ksaha9325 Жыл бұрын
Really helpful
@BengaliRoamers
@BengaliRoamers Жыл бұрын
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.
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Good react interviews are 60-70% on JS
@BengaliRoamers
@BengaliRoamers Жыл бұрын
@@HiteshChoudharydotcom then JS interview series would be perfect to clear interviews sir.
@bharatrozodkar8956
@bharatrozodkar8956 Жыл бұрын
Please make such more videos
@GurwinderSingh-bo5fi
@GurwinderSingh-bo5fi Жыл бұрын
impressive
@Rishusrivastava519
@Rishusrivastava519 Жыл бұрын
Yes sir please make this type of tutorial
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
👍
@sarthak_cp
@sarthak_cp Жыл бұрын
Please make this series sirr....
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Already on it
@vinaypatil8009
@vinaypatil8009 Жыл бұрын
please 🙏🏽 sir , We want Full interview questions and answers series on JAVASCRIPT AND REACTJS
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Let’s not mix JS snd react, anyways most interviews are on JS
@vinaypatil8009
@vinaypatil8009 Жыл бұрын
@@HiteshChoudharydotcom okay sir no problem at all, thanks for replying
@paritoshchaudhary8490
@paritoshchaudhary8490 Жыл бұрын
Hi, Sir Please make more video javascript interview questions.
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
Absolutely
@itsmesohit
@itsmesohit Жыл бұрын
Please complete this interview series
@HiteshChoudharydotcom
@HiteshChoudharydotcom Жыл бұрын
This will be open ended series
@bibinjaimon
@bibinjaimon Жыл бұрын
🔥🔥
@drh374
@drh374 10 ай бұрын
hey! i want to purchase your udemy course on Pro backend, i want to know if you ever update it
@dakusagar5606
@dakusagar5606 Жыл бұрын
Sir proper interview questions on html css bootstrap and javascript please. Because nowadays there is completely mess around in these in interviews a little mistake in these ruin all the interview please sir 🙂🙏
Higher Order Function | javascript interview series
11:46
Hitesh Choudhary
Рет қаралды 27 М.
I Need Your Help..
00:33
Stokes Twins
Рет қаралды 153 МЛН
100❤️
00:20
Nonomen ノノメン
Рет қаралды 54 МЛН
Closure in javascript
10:49
Hitesh Choudhary
Рет қаралды 41 М.
Javascript Closure tutorial ( Closures Explained )
12:52
techsith
Рет қаралды 542 М.
10 JavaScript Interview Questions You HAVE TO KNOW
13:41
James Q Quick
Рет қаралды 41 М.
Learn JavaScript CLOSURES in 10 minutes! 🔒
10:58
Bro Code
Рет қаралды 11 М.
Event loop | Will javascript wait?
9:55
Hitesh Choudhary
Рет қаралды 35 М.
The React Interview Questions You need to Know
21:29
CoderOne
Рет қаралды 20 М.
Complete GIT in 1 video
3:43:17
Hitesh Choudhary
Рет қаралды 62 М.
Не обзор DJI Osmo Pocket 3 Creator Combo
1:00
superfirsthero
Рет қаралды 1,3 МЛН
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43
Очень странные дела PS 4 Pro
1:00
ТЕХНОБЛОГ ГУБАРЕВ СЕРГЕЙ
Рет қаралды 384 М.
Где раздвижные смартфоны ?
0:49
Не шарю!
Рет қаралды 448 М.
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 19 МЛН
How To Unlock Your iphone With Your Voice
0:34
요루퐁 yorupong
Рет қаралды 18 МЛН