![Cover image for ⚡️⛓JavaScript Visualized: Scope (Chain)](https://res.cloudinary.com/practicaldev/image/fetch/s--78xAYQdy--/c_imagga_scale,f_auto,fl_progressive,h_420,q_66,w_1000/https://thepracticaldev.s3.amazonaws.com/i/i4jymvdb2vqc4m2wg5jm.gif)
Time for the scope chain 🕺🏼 In this post I assume you know the basics of execution contexts: I’ll soon write a post on that too though 😃
Let's ...
For further actions, you may consider blocking this person and/or reporting abuse
Hey @theavocoder
hi @baconbrix @evanbacon
how are you doing sir @baconbrix @evanbacon
Hi the @avocoder me again.
I have a (REALLY (INMPORTANT)) question for you 🤭😊
like really imporaant
~ Evan (baconbrix (like and subscribe)) bacon 🥓
ask
the
i
m
p
o
r
t
a
n
t
questionee @baconbrix @evanbacon
OK
tik tok im waiting
So I was following you on insagtarm 😛 then I think I saw u on medium 🥳🤩 and finally I opened a PR on ur javascript questions 😤
my question is u r good at javascript and you also use coffeescript (LMAAO) but why does your descriptioon say you live in florida switzerland and amsterdam?!
ok so.
so like. first like, i live in like, amsterdam 🍃 then like, like i live in florida 🐬but like, also i like live in like sweden
NEAT
ANWAYS , whatss you ## (🤭☎️) because i have , another few question for y o u to answer me to
and wat is ansewr
discuss
isnt this the H.T.M.L. programming code ? ? ?
thank you
These are all great articles you've created here.
Just FYI, in case you weren't aware, you can link them together using a series so that people can find your past ones as well.
A short guide on how to “make” the series widget on DEV
Dzhavat Ushev ・ Sep 27 '19 ・ 2 min read
Looking forward to your next article!
hi , lydiahallie @theavocoder, i like the way you choose to share knowledge , can you please suggest me how can you do that animations for better understanding, could you please suggest me for how can i do like that animations in windows 8 PC any tools are available for windows or tools or chrome extensions ??
newbie to learning JS. your posts are very clear and informative. your Final JS Notes will be invaluable to others just starting out. look forward to future posts.
bigleegeek
Hey @lydiahallie
let a = 11;
{
var a = 21;
}
Why this code snippet shows "SyntaxError: Identifier 'a' has already been declared "
and following code run as normal
var a = 11;
{
let a = 21;
}
var
is function scoped that is it is declared at top of the nearest function scope, global scope in the first one, where alreadya
is present .let
is block scoped that is it is scoped inside nearest flower brackets.var a
is in global scope andlet a
is in block scope.muito bom , ou seja meu escopo que seria minha função declarada com "chaves"
const a = 'hi'
function myFunction() {
// pode ter acesso a todos que estão de fora da minha função
const x = 'ana'
console.log(a) -> 'hi'
}
// mas quem está de fora não consegue acessar os valores de dentro da minha função
// console.log(x) -> undefined
Another awesome content! Thanks!
Extremely helpful, please keep this good stuff going. Your content should get more exposure to others.
Great article. I guess you missed to mention, var has function scope.
Really useful information!
Hi @theavocoder how can i learn and strong my fundamental javascript and advance javascript. please share resources.
Does the same methodology apply to telescopes 🔭
u need a microscope
You introduced the "local scope chain", "activation object" and "global object". What has that to do with the "local execution context"?
esto es una JOYA, que buena explicación
thanks
You're a life saver , that was dope content 🔥🔥
What happen if we call the getPersonInfo() function somewhere. Will they be saved in the execution context?