In Python , we have closure, and closure simply means that the nested function retains the variable declared inside the outer function even after that function has returned ie it's out of the memory or we are in global context. Thanks Hitesh sir for this wonderful series on Javascript , now I am able to properly understand it and the most important thing I am enjoying writing the Javascript code😀👍.
Sir if we do all loops in JavaScript (DOM) itself means Then what's the use of programming languages lies python , java etc . Is only used for saving the data in Database . Please clarify sir please
So many things like multi threading and security ...etc etc are not available in js so java python go php c# is used on server side ..and many data structures already implemented in those languages.
I appreciate the content people make, but you tried to explain a concept that is simple with very complicated terms making it impossible to understand.
OMG, this guy doesn't even know what he is speaking just for the sake of creating content he making video. Not even explaining what the thing is and taking the viewers into more and more questions. Clearly this guy doesn't know how to explain.
If you write like this one it will definitely work function init() { var fristName ="Sachin Pandey"; function sayMyFristName(){ console.log(fristName); }; sayMyFristName(); console.log(fristName); } init();
Full course is FREE and will be available here
courses.learncodeonline.in/learn/Complete-Javascript-course
In Python , we have closure, and closure simply means that the nested function retains the variable declared inside the outer function even after that function has returned ie it's out of the memory or we are in global context.
Thanks Hitesh sir for this wonderful series on Javascript , now I am able to properly understand it and the most important thing I am enjoying writing the Javascript code😀👍.
Not even python! JavaScript itself there’s something called a closure!
Thank you so much Hitesh sir. I think this will be very easy if we can imagine it with the popsicle example or the classic king's territory problem.
Really enjoying this series... thank u Hitesh sir..
what are differencces between scope and lexical scope?
Sir I'm not studied.
But you're My fav. One
Always amazing Content!
Thanks Sir
what if we have 2 methods in init() and both are taking arguments? how does it works?
Lexical scoping another jeberish word. But no problem Hitesh sir is with us
Thanks sir for osom content
Sir if we do all loops in JavaScript (DOM) itself means Then what's the use of programming languages lies python , java etc . Is only used for saving the data in Database . Please clarify sir please
So many things like multi threading and security ...etc etc are not available in js so java python go php c# is used on server side ..and many data structures already implemented in those languages.
Great video 👍
Thank you sir...
#10minutesJS day 41!
I appreciate the content people make, but you tried to explain a concept that is simple with very complicated terms making it impossible to understand.
exactly
JAVASCRIPT WORKING IS SOMEWHAT SIMILAR TO PYTHON BUT ITS INBUILT FUNCTION NAMES AND WAY OF WRITING(camelCase) IS SOMEWHAT SIMILAR TO JAVA.😅
Sir aape kya kara te hai
Njoinggg
Good morning sir
stop using var guys what is going on\?
OMG, this guy doesn't even know what he is speaking just for the sake of creating content he making video. Not even explaining what the thing is and taking the viewers into more and more questions.
Clearly this guy doesn't know how to explain.
CANT AGREE MORE
you made it complex bro, huh😒
You dont know how to explain,
If you write like this one it will definitely work
function init() {
var fristName ="Sachin Pandey";
function sayMyFristName(){
console.log(fristName);
};
sayMyFristName();
console.log(fristName);
}
init();