Closure in Javascript

  Рет қаралды 27,346

Piyush Garg

Piyush Garg

Күн бұрын

Пікірлер: 33
@infinioda108
@infinioda108 4 ай бұрын
practical use case is bad here
@GovindKumar-xj9yw
@GovindKumar-xj9yw 5 ай бұрын
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
@motivatedmomin
@motivatedmomin 3 ай бұрын
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.
@anonymoushackerar7507
@anonymoushackerar7507 2 ай бұрын
So encapsulation & abstraction are two main purposes for which it is used @piyushgargdev ?
@shubhsharma19
@shubhsharma19 Ай бұрын
@@anonymoushackerar7507 yes actually and so that outer functions can not access inner data, which means privacy and encapsulation
@agirlfrom_mountains
@agirlfrom_mountains 24 күн бұрын
@@shubhsharma19 Can Anyone tell me use of closure in Real Application? Example please.
@shubhsharma19
@shubhsharma19 24 күн бұрын
@@agirlfrom_mountains utility functions and function returning functions.
@banothutharun2743
@banothutharun2743 Ай бұрын
wow mannnn😃
@devilslord1864
@devilslord1864 2 ай бұрын
Can't we just create one outer function to reach the same result? Why use another inner function?
@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 🚀
@suryaravikumar4210
@suryaravikumar4210 Жыл бұрын
Your practical approach to promises is excellent; it's simple, precise, and impressive.
@shaizi778
@shaizi778 10 ай бұрын
bro you are genius, teaching method very well ....
@mayappapujari9259
@mayappapujari9259 8 ай бұрын
so beautiful, so elegant, just looking like wow... very helpful
@harshvardhansankpal716
@harshvardhansankpal716 7 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
@@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 ???
@KishanJainam
@KishanJainam 3 ай бұрын
If we can use Closure and make function inside function then time & space complexity increasing or not ??
@snehasish-bhuin
@snehasish-bhuin Жыл бұрын
Lovely explained 💌💌💌💌💌💌💌
@Simran_048
@Simran_048 10 ай бұрын
like lamba function in python
@nehasalma9083
@nehasalma9083 11 ай бұрын
your videos are too good you just have to do it that change your thumbnail quality of this not good
@AiGoogleBard
@AiGoogleBard 10 ай бұрын
bro ye jo brackets ki line show ho ri ha isky liye kn c extension use kr rhy hain
@PrasoonAsati88
@PrasoonAsati88 Ай бұрын
Fan of your channel
@valajanvi9445
@valajanvi9445 2 ай бұрын
very good explanation😇❣
@manashvardhan9965
@manashvardhan9965 4 ай бұрын
Bhaiya achhe se nhi samjhaya aapne 😑
@rutvikpawale2462
@rutvikpawale2462 3 ай бұрын
thanks man
@weforyouweb1165
@weforyouweb1165 Жыл бұрын
Very well explained
@prachigour09
@prachigour09 Жыл бұрын
Just wow!!🎉
@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 7 ай бұрын
Mujhe bahot sahi lgta h apka tum bcoz aap hame padha rhe ho aur bahot hi awesome padha rhe
@abhaynautiyal-dev
@abhaynautiyal-dev 7 ай бұрын
@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 तू से संबोधित नही कर सकते🙄
Currying in Javascript | JS Interview Questions
10:56
Piyush Garg
Рет қаралды 20 М.
Lexical scoping and Closure | chai aur #javascript
26:48
Chai aur Code
Рет қаралды 93 М.
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 3,5 МЛН
Worst flight ever
00:55
Adam W
Рет қаралды 27 МЛН
Brawl Stars Edit😈📕
00:15
Kan Andrey
Рет қаралды 57 МЛН
JavaScript Closures Tutorial (Explained in depth)
19:03
ColorCode
Рет қаралды 70 М.
What is IIFE in Javascript? Javascript Interview Questions
11:13
Confused with Closures?  Not anymore! | Closures in JS Explained in Depth | Hindi
1:03:34
Closures in JS 🔥 | Namaste JavaScript Episode 10
22:44
Akshay Saini
Рет қаралды 834 М.
Javascript interview | Closure
11:44
Hitesh Choudhary
Рет қаралды 37 М.
Scope level and mini hoisting in javascript | chai aur #javascript
14:57
JavaScript Promises In 10 Minutes
11:31
Web Dev Simplified
Рет қаралды 1,7 МЛН
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 3,5 МЛН