JavaScript Scope Chains and Closures

  Рет қаралды 46,358

InfoQ

InfoQ

Күн бұрын

Пікірлер: 49
@nooxis
@nooxis 8 жыл бұрын
Really one of the best explanations of JS scope and closure I have seen.
@roychoo
@roychoo 7 жыл бұрын
大悲咒
@riclf
@riclf 9 жыл бұрын
Very well explained. I also appreciate that your voice as a presenter was clear and strong. Really helped.
@oohkumar
@oohkumar Жыл бұрын
Still one of the best explanations of closures after all these years.
@kozmicluis2552
@kozmicluis2552 9 жыл бұрын
Probably the best explanation of scope and hoisting I've ever seen.
@awc032
@awc032 8 жыл бұрын
Thank you Adam. We need more wonderful JS teacher like yourself. Please keep publishing your talks!
@prashantagarwal3339
@prashantagarwal3339 8 жыл бұрын
you are the best teacher i have encountered in my entire life....thank you very much adam... :)
@aBamieh
@aBamieh 8 жыл бұрын
you have not encountered enough teachers then. he did a good job, but far from the best in my opinion.
@josealfonso2117
@josealfonso2117 9 жыл бұрын
Dude! This is the best presentation about Javascript I've seen in a while. It comes to prove that when you know what you are talking about you can explain it in simple terms! - Thanks! :-)
@art123-c4r
@art123-c4r 7 жыл бұрын
Thanks! It's been very interesting and first of all really compelling while you watching. Love the way how this guy conveys the information to the audience.
@JohnDoe-op2lr
@JohnDoe-op2lr 8 жыл бұрын
Great explanation. Even though I kinda suspected some of this before the video, this video really put everything in it's place. Thank you very much.
@linardzb
@linardzb 10 жыл бұрын
very interesting presentation, any plan to make one on functions and methods?
@cupajoesir
@cupajoesir 8 жыл бұрын
Nicely framed and good context provided. Thanks for posting.
@estefaniakiara-elizabeth8538
@estefaniakiara-elizabeth8538 8 жыл бұрын
Thank you!!! great explanation, I was confused about scope and closures but your presentation clarified my questions and doubts.
@JoffreyKanmogne
@JoffreyKanmogne 9 жыл бұрын
Great! I understood a bunch of things on scopes chain, closures and hoisting
@maurocremonini
@maurocremonini 4 жыл бұрын
Thank you very much for this outstanding presentation. Very clear!
@SachinSingh-qe1dg
@SachinSingh-qe1dg 9 жыл бұрын
Really one of the best explanations.. loved it..
@TheHolyReality
@TheHolyReality 8 жыл бұрын
Great video. The only thing that left me confused was in the last few minutes of the video. When you showed that you can see private data using Chrome developer tools (using console.dir) through Function scope tree. Does this mean that anyone can *see* what the private data is even tho they cant do anything with it?
@tarunpahuja3443
@tarunpahuja3443 7 жыл бұрын
Could you please tell how scope chain would look like for "module pattern .." examples. Please
@santosharakere
@santosharakere 9 жыл бұрын
Excellent Presentation. Thank you.
@api-first
@api-first 4 жыл бұрын
This is such an amazing video!
@cupajoesir
@cupajoesir 8 жыл бұрын
It was mentioned that these slides were on speaker deck. Is there a link?
@SmartWizzard
@SmartWizzard 8 жыл бұрын
Hi, where can I download these slides. I they very resourceful for reference.
@syedali-le6ii
@syedali-le6ii 10 жыл бұрын
What is the difference between Lexical Scoping and In-Memory Scope?
@gamingcroctv4523
@gamingcroctv4523 3 жыл бұрын
AHA moments! thanks for this!
@LeBadman
@LeBadman 10 жыл бұрын
Excellent explanation!
@NathanComstock-sf
@NathanComstock-sf 9 жыл бұрын
@MrinmoyRoy1990
@MrinmoyRoy1990 8 жыл бұрын
Excellent! Just Excellent!
@itsdannyftw
@itsdannyftw 7 жыл бұрын
Wait, so scope chaining (the black arrows) is only possible due to the [[scope]] member? Don't think he explicitly stated this so could anyone please confirm? Otherwise my question was how do those black arrows know where to point to, etc? Is there some other back-end mechanism? or is it just because of [[scope]]?
@Oscar-mp6hw
@Oscar-mp6hw 8 жыл бұрын
Great Job! Thank you for making it easier. Subscribed.
@niktwister
@niktwister 3 жыл бұрын
Can anybody explain how "let" and "const" will fit into all this ? I mean how block scopes are handled ??
@nadavgampel6585
@nadavgampel6585 6 жыл бұрын
where can I find the notes of this lecture ?
@0xO2
@0xO2 9 жыл бұрын
Isn't that local scope also has slot/name of the own declared function (to make recursion work)? ``` > var G = function B() { console.log(B) }; undefined > G() VM7249:2 function B() { console.log(B) } undefined > B() VM7292:2 Uncaught ReferenceError: B is not defined(…) ``` while such case may seem like *g* is in outer scope ``` > (function g() { console.log(g) })() function g() { console.log(g) } ``` Or there is another [[magic]]?
@subhashgn1775
@subhashgn1775 3 жыл бұрын
Arindam paul in the audience.....
@stevend1752
@stevend1752 8 жыл бұрын
Thank you, finally I fond the answer :)
@MohamedHamed-oz6nq
@MohamedHamed-oz6nq 4 жыл бұрын
best of the best
@HuaJarry
@HuaJarry 6 жыл бұрын
THANKS A LOT.
@mikhoq
@mikhoq 7 жыл бұрын
Magically disappears at 53:53
@syzer3921
@syzer3921 10 жыл бұрын
1 person missed the like button :)
@AjinkyaBorade
@AjinkyaBorade 10 жыл бұрын
it could have been more interesting if the speaker could show more practice examples, theory bores me
@wjrasmussen666
@wjrasmussen666 10 жыл бұрын
Yes, having it fully explain is often better for people who need to learn something new.
@MarioCarrizalesArt
@MarioCarrizalesArt 8 жыл бұрын
great info just too much repetition of "um...", "so um..." really annoying. I did click the "LIKE" button.
@lgiccambodia
@lgiccambodia 8 жыл бұрын
Not fast enough get bored
@cupajoesir
@cupajoesir 8 жыл бұрын
settings->speed->2.0 you're welcome.
@aBamieh
@aBamieh 8 жыл бұрын
This guy heavily takes from Kyle simpson and philip roberts. if youre new to this, check them out they did a far better job at explaining these concepts. and wow thats in 2014 and JS programmers dont know what and IIFE is? Amateurs detected!
@TheHolyReality
@TheHolyReality 8 жыл бұрын
Are you experienced well with Javascript? I would like to ask you a quick question just to clarify things.
@aBamieh
@aBamieh 8 жыл бұрын
i believe so, sure go ahead
@TheHolyReality
@TheHolyReality 8 жыл бұрын
Ahmad Bamieh In the video, he showed how he can access private data using console.dir and then look it up in Function scope property. Does this mean that anyone can see any private data that we make using this simple method in Dev tools,even tho they cant manipulate it in any way? I mean it seems to me that its a security flaw for anyone even to see the private data.
JavaScript Patterns for 2017  - Scott Allen
56:03
NDC Conferences
Рет қаралды 179 М.
JavaScript the Hard Parts: Closure, Scope & Execution Context
57:05
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 22 МЛН
Douglas Crockford: Really. JavaScript.
46:10
JSConf
Рет қаралды 81 М.
Crockford on JavaScript - Act III: Function the Ultimate
1:13:29
YUI Library
Рет қаралды 181 М.
Introduction to JavaScript and Browser DOM
1:06:01
Google TechTalks
Рет қаралды 133 М.
JavaScript the Hard Parts: Closures, Scope, and Execution Context
1:54:12
Advanced Async and Concurrency Patterns in JavaScript
39:43
Hack Reactor
Рет қаралды 141 М.
JavaScript: The Good Parts
1:03:48
Google TechTalks
Рет қаралды 585 М.
JavaScript Interview Prep: Functions, Closures, Currying
1:29:03
freeCodeCamp.org
Рет қаралды 156 М.
«Осень». Самая большая загадка Windows XP
14:36
Девять десятых
Рет қаралды 1 МЛН
Ai Samsung vs Ai Apple
1:00
Romancev768
Рет қаралды 298 М.
Lightning + Apple + Pencil
0:14
Ideas 1+1
Рет қаралды 14 МЛН
👍🏻 Samsung Galaxy A56 - ЕГО ЗАХОТЯТ ВСЕ! Xiaomi так не сможет…
12:05
Thebox - о технике и гаджетах
Рет қаралды 84 М.