What is Scope?
Scope determines the visibility or accessibility of a variable or other resource in the area of your code.
Glob...
For further actions, you may consider blocking this person and/or reporting abuse
Hi if you not have written {curly brackets} for explaining block scope, I could not understand it.
thanyou verymych for expaining in such easy language.
Nice article.
Great article. Really helped me with understanding the block scope
Great clear explain !!!
Great article - thanks for sharing! :)
Nice explanation
Very nice article on scopes !!!
If we are not able to reassign the value in the variable that is defined with the const
then why it is changing his value every time, when the loop gets executed
const array = [1,2,3,4] ;
for (let index = 0; index < array.length; index++) {
const element = array[index];
console.log(element);
}
answer is
you are storing the array[index] in element
you are not re-declaring but you are updating the value of element
Thank you @mingt .
I think there is a misinformation In "Lexical Scope" topic that you define it: "children scope have the access to the variables defined in the parent scope."
I think that definition is for "Scope Chain" and the "Lexical Scope" related to which type of referencing to parent in Scope Chain does JS (Lexical or Dynamic).
Very helpful article! :)
_Easy and Clear explanation: thanks for sharing this article. _
Thank you I Finally understood !
Fantastic, great job
thank for your explantation
This was very helpful, thank you very much! :)
Very cool explanation, straight to the point. I'm currently learning the scope subject on my bootcamp and you've made me understand it a lot better!
Nice explain of the scope
very nice explanation
very very clear and vivid explanation. awesome
Well Orchestrated ....
Thank you, it's very clear now.
nice explanation
salut
This is really helpful, embed this picture as a summary if you want.
thanks dude i used it in my notes
clear, helpful description of scope! Thanks!
Thank you for such Great work
Good Explanation .. thanks alot
Good
Thank you so much for that explanation
Very much informative Article About Scope in JavaScript. Well Define.
Thank you
is block scope and child scope same ?
I have not seen any simple explanation of function scope and block scope before. It is a worthwhile article to read, thanks
Thank you so much for the elaborative write-up
Awesome, simplified and tactical. Loved it.