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
Great clear explain !!!
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.
Great article. Really helped me with understanding the block scope
Nice article.
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).
This was very helpful, thank you very much! :)
very nice explanation
Very helpful article! :)
Nice explain of the scope
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!
Well Orchestrated ....
very very clear and vivid explanation. awesome
thank for your explantation
Fantastic, great job
Thank you I Finally understood !
This is really helpful, embed this picture as a summary if you want.
thanks dude i used it in my notes
nice explanation
salut
Thank you, it's very clear now.
_Easy and Clear explanation: thanks for sharing this article. _
I have not seen any simple explanation of function scope and block scope before. It is a worthwhile article to read, thanks
Awesome, simplified and tactical. Loved it.
Very much informative Article About Scope in JavaScript. Well Define.
Thank you
clear, helpful description of scope! Thanks!
Good Explanation .. thanks alot
Thank you so much for that explanation
is block scope and child scope same ?
Thank you so much for the elaborative write-up
Good
Thank you for such Great work