Тёмный

Closure in Javascript 

Piyush Garg
Подписаться 142 тыс.
Просмотров 18 тыс.
50% 1

I will show you how to use closure in Javascript in this video.
The closure is a powerful concept in programming that allows you to create functions that have access to variables from the scope outside of the function.
Connect With Me: bio.link/piyushgargdev
More Playlists
► Complete ReactJS Tutorial Series - • Complete React Tutoria...
► Complete Firebase & React Tutorial Series - • Firebase with Reactjs ...
Social Links
► Twitter - / piyushgarg_dev
► LinkedIn - / piyushgarg195
Video Titles
What are closures in Javascript?
Javascript Lexical Scoping
Javascript closures
Hashtags
#javascript #closure #webdev #webdeveloper #javascriptinhindi #javascriptinterviewquestions #webdevelopment

Опубликовано:

 

11 дек 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@motivatedmomin
@motivatedmomin 22 дня назад
One of the primary purposes of closures is to create private variables and functions. In languages like JavaScript, where objects and functions are often public, closures allow for data to be encapsulated in a function scope, providing a way to restrict access to certain variables.
@GovindKumar-xj9yw
@GovindKumar-xj9yw 2 месяца назад
watched 10 videos of closures but here i understood it properly. Also the same adder functio question was asked in an interview round. Thank you
@suryaravikumar4210
@suryaravikumar4210 9 месяцев назад
Your practical approach to promises is excellent; it's simple, precise, and impressive.
@ipreet6850
@ipreet6850 Год назад
just found your channel bro, you explain topics in details and good thing is its not only for beginners but intermidiate can also learn something
@piyushgargdev
@piyushgargdev Год назад
Thank you so much bro 🚀
@shaizi778
@shaizi778 6 месяцев назад
bro you are genius, teaching method very well ....
@mayappapujari9259
@mayappapujari9259 5 месяцев назад
so beautiful, so elegant, just looking like wow... very helpful
@snehasish-bhuin
@snehasish-bhuin Год назад
Lovely explained 💌💌💌💌💌💌💌
@harshvardhansankpal716
@harshvardhansankpal716 4 месяца назад
in text sizer example we can create a function and onclick of button change the size of text, closure ki jarurat hinahi hai na.
@adityakumar9431
@adityakumar9431 2 месяца назад
that's the point he's trying to explain, if we would have not used closure, we would have to create function for each text size but using closure we can do it by just creating one function and through it creating different sizes function in just one line!
@amandeepsingh6581
@amandeepsingh6581 2 месяца назад
@@adityakumar9431 But we can create one fn and then pass it different value like: changeSize(12); changeSize(20); why do we even need to create an inner function ???
@weforyouweb1165
@weforyouweb1165 Год назад
Very well explained
@prachigour09
@prachigour09 9 месяцев назад
Just wow!!🎉
@rutvikpawale2462
@rutvikpawale2462 21 день назад
thanks man
@KishanJainam
@KishanJainam 21 день назад
If we can use Closure and make function inside function then time & space complexity increasing or not ??
@AiGoogleBard
@AiGoogleBard 7 месяцев назад
bro ye jo brackets ki line show ho ri ha isky liye kn c extension use kr rhy hain
@Simran_048
@Simran_048 7 месяцев назад
like lamba function in python
@infinioda108
@infinioda108 Месяц назад
practical use case is bad here
@nehasalma9083
@nehasalma9083 8 месяцев назад
your videos are too good you just have to do it that change your thumbnail quality of this not good
@hrxgaurav
@hrxgaurav Год назад
Sb kuch Bahut badhiya hai, but aap joo video me itna jayda "tum" word kaa use karte hai isiliye sahi nahi lagta.
@piyushgargdev
@piyushgargdev Год назад
Aadat se majbor bro
@ranjanbhat5607
@ranjanbhat5607 Год назад
HRx pdne pe dhyaan do. Ek to piyush bhai ache se pdarhe hai, aur tumko tum , tu ki pdi hai
@Shiwangi_tiwari
@Shiwangi_tiwari 4 месяца назад
Mujhe bahot sahi lgta h apka tum bcoz aap hame padha rhe ho aur bahot hi awesome padha rhe
@abhaynautiyal-dev
@abhaynautiyal-dev 3 месяца назад
@hrxgaurav ap thoda sa pgl wgl ho kya bhai kya tum ese galti nikaalte rehte Btw wo koi glti nhi h Tumko nhi padhna mt padho Or kaunse bade aadmi ban gye tum jo aapko तू से संबोधित नही कर सकते🙄
@manashvardhan9965
@manashvardhan9965 Месяц назад
Bhaiya achhe se nhi samjhaya aapne 😑
Далее
Currying in Javascript | JS Interview Questions
10:56
Он тоже из IKEA 🙀
00:10
Просмотров 323 тыс.
Lexical scoping and Closure | chai aur #javascript
26:48
Closures in JavaScript 🔥 Episode 3 - In 12 Minutes
12:54
Javascript interview | Closure
11:44
Просмотров 34 тыс.