JS Global Variables, Global Properties, and globalThis

  Рет қаралды 21,681

Steve Griffith - Prof3ssorSt3v3

Steve Griffith - Prof3ssorSt3v3

3 жыл бұрын

This tutorial explains the differences between creating global variables created with var, let, or no keyword.
It also compares using this, global, window, and globalThis
code from video: gist.github.com/prof3ssorSt3v...

Пікірлер: 18
@kqvanity
@kqvanity 2 жыл бұрын
It's always great to learn quirky javascript from your clear & concise explanations .
@montenague
@montenague 3 жыл бұрын
You explain things really well man
@radleys5285
@radleys5285 2 жыл бұрын
Thank you! The best explanation I've found on KZfaq
@rajasekhar5135
@rajasekhar5135 3 жыл бұрын
Mr. Steeve dude 😍😍😍😍😍😍 ur the best tutor in the u tube...
@chesterxp508
@chesterxp508 2 жыл бұрын
Another very cool tutorial!
@stephen83084
@stephen83084 3 жыл бұрын
Thank you for all of your videos that you had made for the JavaScript community. Just completely watched all of your JavaScript from the Start playlist and I now feel that I have a decent understanding of what you can do in JavaScript. This is my first programming language. Do you have any recommendation where to go from here? I would like to freelance / Web Dev. Perhaps I should learn to work with content management system just to get some world experience with customers. I learn a little bit of CSS and HTML only read 1 book around 700 pages just enough to get a basic understanding.
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
After the JavaScript from the Start list, I would recommend the JavaScript in the Browser and Learning CSS playlists. Beyond tutorials I recommend that you practice building things. As you build projects you come across topics that you realize that you don't know. Proving that you can build things is how you get jobs. So, again, projects.
@TheAppumone
@TheAppumone 3 жыл бұрын
I always come back to your channel when ever I have a doubt. Thank you for making these tutorials. However, i would suggest you try to use better (marketable) name or idk make your videos stand out. You deserve many more subscribers and views.
@nigelbrie5693
@nigelbrie5693 3 жыл бұрын
I actually love the green background. When I see it I know instantly it's one of Steve's videos! Green means go, so I click it. Make sure you like and subscribe people!
@tinpham6413
@tinpham6413 2 жыл бұрын
Thank you, i read that var will add variable to Object Variable in Global Scope, but when i use globalThis or global to display in nodejs it not work, now i understand that refer to window keyword
@BrilTek
@BrilTek Жыл бұрын
Thank you!
@qzbnyv
@qzbnyv 3 жыл бұрын
I’m sure that `var` difference between Node and the Browser won’t cause aaaaaannnnnyyy bugs in production at all ;-)
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
The addition of let and then the addition of globalThis were both aimed at addressing those problems. 👍
@lavishly
@lavishly 2 жыл бұрын
Love your content but seems always some audio issues. Often too quite but here it is crackling. Might be worth a new mic. Great stuff.
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 2 жыл бұрын
I replaced the old mic years ago. Some of the stuff from 2016 and 2017 has poor audio.
@femaledeer
@femaledeer 3 жыл бұрын
I don't have enough knowledge to know what the difference is between global/window why it matters
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
In NodeJS global is the main global object. In the browser window is the top level object
@zloy_ax8496
@zloy_ax8496 20 күн бұрын
+
JS Code Structure Moving Beyond Beginner
21:31
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 13 М.
JavaScript Classes vs Prototypes
14:39
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 62 М.
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 7 МЛН
1 or 2?🐄
00:12
Kan Andrey
Рет қаралды 58 МЛН
This Is One Of My Favorite TypeScript Features
5:22
Web Dev Simplified
Рет қаралды 133 М.
Learn JavaScript Scoping In 10 Minutes
11:39
Web Dev Simplified
Рет қаралды 58 М.
Global State with Context in React - React context
17:42
Weibenfalk
Рет қаралды 20 М.
JavaScript Let vs Var vs Constant | Mosh
6:51
Programming with Mosh
Рет қаралды 281 М.
Node.js Tutorial - 24 - Streams and Buffers
9:49
Codevolution
Рет қаралды 68 М.
JavaScript Proxies
22:54
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 11 М.
KEYNOTE- The V8 Engine and Node.js
19:09
node.js
Рет қаралды 24 М.
I Cannot Believe TypeScript Recommends You Do This!
7:45
Web Dev Simplified
Рет қаралды 164 М.
JavaScript Event Bubbling and Propagation
12:53
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 21 М.
JS Function Methods call( ), apply( ), and bind( )
13:14
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 38 М.