Closure | JavaScript | Malayalam
ฝัง
- เผยแพร่เมื่อ 5 ก.พ. 2025
- This video explains the concept of Closure in JavaScript. The content is explained in Malayalam language.
💝 Support: codemalayalam@upi
Closure MDN: developer.mozi...
Video on Stack and Heap: • Call by Value Call by ...
Video on Callback: • Callback | JavaScript ...
Excellent! This is the best explanation I have seen for closure.
Thank you very much !
Clear explanation bro...Thanx
Thank you!
Thanks bro, the series was a great opportunity to learn basics.
nice explanation sir💥
Thank you!
the , explanation is nice .. very clear to the core ...could you also do few videos on css syntax?
Next few videos is on CSS. Hope it would be useful. Thank you.
thank you brohhhh
😍😍😍
Welcome bro !
❤❤❤❤ powli
Nice
thanks
ur welcome :)
@@CodeMalayalam 😍
thanks .very helpfull
Glad it helped
parent function a,b value heap save chayyan karnam
ith oru lochal variable ellye expline chyth teroo
sorry bro. Question not clear.
@@CodeMalayalam Parent function ula perametore a,b ithe lochal variable anoo
anakil ith stack il elle store chayya
inkk clear ayilla
Bro call stack ninnum inner function return akumbol aa function nte lexical environment koodiyale return akkunnath athukondalle pinneyum aa variable access cheyan kittunnath 🤔
oru function return aayaal athinte call stack motham pokum. means any local variables in that function will get lost. Aa variable athinte inner functionil access chayyaan pattunnathu athu aa innter function oru closure variable aayi store cheyyunnathu kondaanu.
bro debounce throttle onnu simple aayi parayamo
Join telegram of Web Diary or Debug Media. Ask question there tagging Code Malayalam. I will try to answer by voice.
pythonum angne thanne alle...I mean heapil alle save cheyya...
ആയിരിക്കണം. python വല്യ പിടി ഇല്ല 🙂
Bro callback function ലോട്ട് argument pass ചെയ്യാൻ പറ്റില്ലേ
പറ്റും. ആരാണോ callback call ചെയ്യുന്നത്. അവർക്ക്.
Callbackന് രണ്ടു ഭാഗം ഉണ്ട് .. ഒന്ന് registrationഉം മറ്റേത് calling. For example
document.getElementById('button').onclick = function (evt) {
console.log(evt)
}
ഇങ്ങനെ എഴുതുമ്പോൾ registration മാത്രമേ ആവുന്നുള്ളൂ. button click ചെയ്യുമ്പോൾ call ചെയ്യുന്നത് ഇവിടെ browser ആണ്. call ചെയ്യുന്ന ആളാണ് argument കൊടുക്കുന്നത്. അതായത് ഇവിടെ evt കൊടുക്കുന്നത് browser ആണ് . Registration ചെയ്യുന്ന ആള് സാധാരണ ഗതിയിൽ argument കൊടുക്കാറില്ല.
registration ചെയ്യുമ്പോൾ argument പറയാൻ ഒരു വഴി ഉണ്ട്. bind ഉപയോഗിച്ച്
document.getElementById('button').onclick = function (evt) {
console.log(evt)
}.bind(null, 10);
ഇങ്ങനെ ചെയ്താൽ ഇവിടെ evtൽ വരുന്നത് 10 ആണ്. പക്ഷെ ഇത് arrow functionന് പറ്റില്ല.
@@CodeMalayalam registration ചെയ്യുമ്പോൾ argument koduthaal, athu callback function akuo? ilelo? namal koddukuna argument pole aakuvelo apo.(since argument is not provided by browser)..so athu callback function akilelo
sound ila bro
sound okke undu bro. See other comments.
❤️
Super🫶❤️
Thank you !