Комментарии:
The resource heavy stuff is the only thing i dont know. and was new to me, thanks! it was so informative and useful for my visit in your channel
ОтветитьThank you so much for the fast and easy explanation :) saved me a lot of time :)
ОтветитьHmm love your plants man! What plants are there ? And also the pots, super nice!
ОтветитьThanks for the vid but waay too much treble in your vocal mix.
ОтветитьI was just thinking, "oh, in that case I'll create variables outside of the functions!" then I got roasted with some facts about the downsides lol
Ответитьwithin 2 minute you explained it better than the almighty "yOu DoNT kNOW Js" book... getting a little annoyed at the overcomplicated examples in that book.
Ответитьthank you! this the only video that showed clear examples and your explanation was clear. Please keep creating content
Ответитьnot seeing why the <form> tag was necessary. Great tutorial tho!
Ответитьbruh thank you this was a breeze amazing teaching abilitys my boy
ОтветитьNice videos
ОтветитьThank you so much, right now I know what variable scope is and I'm waiting for the next lesson
and thank you again🙏🙏🙏
Thanks man, 10 times better than Udemy explanation. “You're an amazing teacher !!!
ОтветитьThank you. Wasn’t getting what I needed out of my course so stopped in here in order to get some quick info. You cleared up what I needed to know in a matter of minutes. Thumbs up, thank you again!
Ответить5 JavaScript Scopes explained.
1. Global Scope
All other scopes are defined inside of this scope so variable defined here will be available in all other scopes.
2. Local Scope
This can be any scope, for example two variable defined in a Function scope are local to each other.
3. Function Scope
You create a function and it creates a scope, it's that simple, any variable defined here will not be available outside the scope. not even variable defined with var keyword.
4. Block Scope
This scope is created simple by wrapping variable inside {} braces, variable will not be available outside the scope
5. Lexical Scope
Lexical scope means the children scope have the access to the variables defined in the parent scope.
I love the way you explain. Thanks for your videos
ОтветитьYour vidoes are the best man! Thank you very much. Almost gave up learning JS
Ответитьhow to share variables between two functions ?
Ответитьthis is outdated topic, as new keyword "let" and "const" added new scope called block scope
Ответитьthanks !
ОтветитьThank you so much! I was really confused on this one but this video helped explain it alot. I'm very grateful!
ОтветитьInstead of console.log you could use return its more professional
ОтветитьYou look like Elon Musk!!!
ОтветитьThank you!
ОтветитьAfter watching the video: local scope makes the site heavier only when we call the function. global scope makes the site heavier on load. local scope also cant be used outside of the function? and global scope yeah
ОтветитьThank you so much that helped me a lot to understand the different between Global Scope and Local Scope.
Ответитьme n my bro lernt JavaScript from u sir gr8 effert
ОтветитьYou explain things much more clearly than the guys whose course i paid for lol. straight to the point you go and its effective! Thank You!!
ОтветитьYou're intro on the past like 5 videos is the EXACT same and its hilarious its like it was all dubbed over hahahahah
Ответитьwhere is the fox on the shelf from?
Ответить10.
Ответитьthank you a lot I really appreciate the time you dedicate you are putting in the videos
ОтветитьThanks!!! I recently started learning to code and this helped a lot!
ОтветитьSuper clear and helpful. Thank you! Cleared up some confusion on my part.
ОтветитьThe best JS course on YT!
ОтветитьHi @mmuts, I have a question about this topic. I created a variable inside if statement (block scope) and tried to access it inside a function (function scope) and it was successful. Are variables declared inside a block scope considered also as declared globally? Or it's just because of hoisting? Thanks more power! Love your tutorials! :)
ОтветитьTHe Alchemist do you suggest for reading
ОтветитьAm I the only one who noticed KURAMA??
ОтветитьThank you brotha for putting this video out!. I have been working with functions for a good couple months and hearing this, in the beginning, was super confusing me as I'm a hands-on visual learner but after building a few things on my landing page and seeing functions being used to what I'm looking for hearing global and logical scope makes a lot more sense!. Keep up the great work your content is great. :D
Ответитьbeing able to see the instructor is helpful for some odd reason. also, the hand gestures help with the explanation lol great videos
ОтветитьThank you so much, I finally understood the global and local scope!
ОтветитьBest Teacher Ever
Ответитьamazing videos i have a question if i finished that 35 videos of JS i will know every thing about JS or not????
Ответитьyou seem really happy about confusing us
ОтветитьThese videos are just great, thanks man for not being a bad teacher :)
ОтветитьI like how you pronounce "var" as in the Danish "was", and not like a cutout from the word "variable". I live in Denmark and I find this quite funny (in a good way) :D
ОтветитьWhat's the difference between console.log and return statement?
ОтветитьSET A GETS As
Ответить