Closures in JavaScript is the most important topic for interviews. Even many senior frontend developers don’t understand this …
49 Comments
Leave a Reply
You must be logged in to post a comment.
Closures in JavaScript is the most important topic for interviews. Even many senior frontend developers don’t understand this …
You must be logged in to post a comment.
Thanks for this.
์ง๋ ธ์ต๋๋ค ์ง์ง ์ด์ ๋๋ก ๊นจ์ฐ์ณค๋ค๋ ๋๋์ ๋ฐ์ ๊ฒ์ ์ฒ์์ ๋๋ค ์์ด ์์ํ๋ค์ ๊ฐ์ฌํฉ๋๋ค
Function along with lexagonal environment is closure
such a great session sir
This is genuinely the best video I have ever seen
Understood very well
Akshay, I am beginner and I have a doubt at https://youtu.be/qikxEIxsXco?t=882 .
Primitive datatypes are passed by value so when variable a is reassigned wouldn't it give an error? Am I missing something here?
I know that first it was defined by let keyword and then a was directly assigned value 100. Does it mean it has become a global variable?
EDIT: Just remembered, functions are passed by reference. So a variable defined inside it will also be passed by reference?
EDIT2: I am freaking out after going through pass reference and pass by value on geeksforgeeks. Every thing messed up in my head. Please help.
Thank-you Akshay. I love watching your videos. You are first and last my favourite instructor of js. Please keep making videos on js advance. I was watching my instructor video around 3 hours but didn't understand not even a single line but when I learnt from you. I understood easily.
Kindly cover
oops
LLD
Promise
Fetch api these kind of topics too. So that we all be good at programing like you.๐๐๐๐๐๐๐๐๐โค๏ธโค๏ธโค๏ธ๐
Thanks for existing !!! Best ever js series on youtube.
green tea is good fr health๐
yes Enjoying
Really Helpful
Very nice
I wished during watching, the video duration time should be 2hrs long.
Why green tea is always green
Thanks for closure
Thank you so much for your videos , like first time in my life I am understanding the hoisting and closure and lexical environment any many more things. Thanks
have you cover arrays topic??
๐
Dear Akshay put couple of lemon drops into your green tea and the taste won't be disgusted you again and thanks for this another great video!
Sooooooooooooooooooooooooooooooooooooooo much exited
Bhai tu bhot funny hai๐๐๐๐
๐
wonderfulll
People say communication is the key trait of growth and everything and I could see it today in this session! need to work on it bruh!
I'm feeling excited ๐, thanks bro,
Thanks Akshay for another great video in this series.
I am really thankful to you.
Here is an example of a function which can be called once only,
function relay() {
let relayed = false;
return function selfDestructibleMessage() {
// Message is already relayed then return an error.
if (relayed) {
return 'Message destroyed!';
}
// Message will be returned so we set relayed to true.
relayed = true;
return 'Your mission, should you choose to accept it, (secret message ahead)…';
}
}
const relaySecretMessage = relay();
console.log(relaySecretMessage()); // this relays the message
console.log(relaySecretMessage()); // this returns an error message
console.log(relaySecretMessage()); // this returns an error message
console.log(relaySecretMessage()); // this returns an error message
Thank you so much
So it's all about father's savings , house and car going to son …
Omg
Complex things becoming easy
mann!!! you make it so simple
I am very excited and I'm enjoying the course. Thanks for making concepts crystal clear.
You talk a single things so many time that it becomes more confusingโฆ
Didn't got the example
who drinks greeeeeen teaaaaa was epic !!! ๐คฃ๐คฃ
could you please make a video on IIFE ?
I think this is the first time ive heard you curse, teacher Akshay ๐ i love it! Thank you for being an amazing teacher
you are awesome bro
Maja aaya
Man how can a student not be excited if the teacher himself is so so much excited. Great video bro
Love u man u r doing good videos ๐คฉ thanks a lot
indian drinking green tea ? bro drink black tea like normal people
This is how my elder brother laught in front of me and after that I get two slaps!!!!๐๐
bnde great ho aap saini sir๐ฅ๐ฅ๐ฅ๐ฅ
Bahut jgh pdha..mdn v dekha tha utne acche se ni smjh aaya but yha full clear hua bhut acche se . Ab refrence aapka v lunga js related.dhywaad aur bhgwaan aapko aise hi aage badhate aur khus rakhe โค๏ธ
FUNCTIONS=MISS UNIVERSE!!
BTW LOVELY EXPLANATION
Hi Akshay can expect unit testing videos? Kind of enzyme and jest and you are known your videos are helping me in my project. Thank you for such a fresh content.
best thing google recommended me to watch…. and i really thank you for the content
green tea๐
your way of subtle humour is enjoyable