1 August 2024
Replytext not yet in the index
explanation ha ki var a=1 is global scope me declare ha or var a=2 local scope me to two function global scope se he value lega
Web Development Bootcamp
Evilexplanation ha ki var a=1 is global scope me declare ha or var a=2 local scope me to two function global scope se he value legaAcha...
Dobara padhunga abhi closure fir wapis aata hu... Thodi der me
Web Development Bootcamp
Replymessage unavailableThoda toh VS code ko dekhlo ki wo kuch warning de rha hai toh kyu de rha hai 😐😐
Web Development Bootcamp
Evilfunction outer() {
var a = 2; // Local variable in outer
function inner() {
console.log(a); // Inner function can access a from outer
}
return inner;
}
var myClosure = outer(); // myClosure is now a reference to the inner function
myClosure(); // Logs 2, because inner has acBro
Web Development Bootcamp
Evilconsole log he us function ke andar karana hoga jaha tak meko clousre smjjh aya gaAcha
Web Development Bootcamp
LINUSGroup mai aisi talk honi chahiye but log sirf course course lage rehte HaiYes right...
correct bro hahahaha 😂😂
SaiyamSavdhaan rahen satark rahen
Us maaya ke peeche ek mayavi daanav bhi ho sakta hai 😂
😂😂😂😂😂😂😂jaise ek hai
Divya naam ka
@divyaprakash3883
Web Development Bootcamp
SaiyamBhai ameer hai
Bathtub me nahata hai to show-off karna to banta haiHahahaha
Deepak kalal
SaiyamBhai ameer hai
Bathtub me nahata hai to show-off karna to banta hai
Hum to gav ke johd mai khud ke nahate Hai
Web Development Bootcamp
A.sIska koi batayega ki output kya aayega or best explanation kya ho skti h iski vo bhi btana plsWahi h ki
Jab execution start hoga toh
Sabhi functions or variables ko memory assign ki jati hai toh
Pehle 1st real function ko dedi memory
Same name hai islie wo wali statement waha assign ho jayegi fir third wale ko dekhega same name hai fir same naam me third wala function assign ho jayega
Or fir code ka execution hoga
Line by line chalegi...
Toh memory me third function assigned hua th real naam par last time...toh wohi execute hoga
Mtlb you both are wasted.
ReplyWahi h ki
Jab execution start hoga toh
Sabhi functions or variables ko memory assign ki jati hai toh
Pehle 1st real function ko dedi memory
Same name hai islie wo wali statement waha assign ho jayegi fir third wale ko dekhega same name hai fir same naam me third wala function assign ho jayega
Or
Thanks 😊
SaiyamBhai ameer hai
Bathtub me nahata hai to show-off karna to banta hai
ye kaise kaise illzaam lagaye jaarahe hai mujhpar
Web Development Bootcamp
SaiyamBhaiyon
Milkar koi SaaS company shuru karte hain. Kya vichaar hain apkeBilkul...