No video

Understand the context in javascript

  Рет қаралды 70,832

Hitesh Choudhary

Hitesh Choudhary

Күн бұрын

Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
All the learning resources such as code files, documentations, articles and community discussions are available on our website:
chaicode.com/
You can find our discord link, github link etc on the above website.
Twitter/X link: x.com/hiteshdo...
Discord link: hitesh.ai/discord
Learn React with 10 projects: • Let's learn react from...
Learn Docker: • A practical guide on D...
Learn Kubernetes: • Complete Kubernetes Co...
How does a browser works: • How does a browser wor...
How nodejs works: • How node JS works | En...
Learn Redux-toolkit: • Learn Redux Toolkit in...
Learn NextJS: • Nextjs Full stack course
Learn Typescript: • Why to learn Typescript
Learn Javascript: • Welcome to new JavaScr...
Learn React Native: • React Native Mastery: ...
Learn Zustand: • React state management...
Learn Golang: • How to get started wit...

Пікірлер: 71
@HiteshCodeLab
@HiteshCodeLab 4 жыл бұрын
Full course is FREE and will be available here courses.learncodeonline.in/learn/Complete-Javascript-course
@kameronkayson7120
@kameronkayson7120 3 жыл бұрын
InstaBlaster...
@shobitjain9619
@shobitjain9619 4 жыл бұрын
In node , the window object is renamed as global. In simpler words, just like in browser there is a window object in which all the global variables reside, in node there is "global" object in which all the global variables reside.
@mohammedzaid5989
@mohammedzaid5989 4 жыл бұрын
Just what I need to hear! 👍🏻
@haythamkenway8343
@haythamkenway8343 4 жыл бұрын
variables declared with "let" or "const" are not added to the "window" object
@brajmohanTikarya
@brajmohanTikarya 3 жыл бұрын
@@haythamkenway8343 it is a global constant that does not become the property of window object.
@ujjawalchatterjee
@ujjawalchatterjee 4 жыл бұрын
Just saw this question in a set of Interview questions and there you are, Brilliant timing
@TheTabishnadeem
@TheTabishnadeem 4 жыл бұрын
What was the question btw??
@ujjawalchatterjee
@ujjawalchatterjee 4 жыл бұрын
@@TheTabishnadeem Explain Context in JavaScript
@shashikanthd4767
@shashikanthd4767 3 жыл бұрын
Brilliant timing nahi bhai "Google's recommendation algorithm tujhpe spy hora hy tujhe ni malum"
@vijaynavale3919
@vijaynavale3919 4 жыл бұрын
Window is a big object where all our variables and functions are stored as properties and method which we can have a access when we create it.
@anubhavkumarrao7015
@anubhavkumarrao7015 4 жыл бұрын
Respected Hitesh sir, Please provide more content about context in java scripts. It is extremely hard to understand context in one go. Thank you
@suvojitpal4875
@suvojitpal4875 4 жыл бұрын
You just make the concept nail down. great sir and waiting for next day
@flexairz
@flexairz 4 жыл бұрын
Just a small remark here: The sayHello() function works because JavaScript hoists all functions to the top during interpretation/ compilation. Context has nothing to do with that.
@SteveCarroll2011
@SteveCarroll2011 4 жыл бұрын
flexairz, correct...but they don’t actually get hoisted, that’s just a concept used to visualize it.
@hitenchawda6443
@hitenchawda6443 4 жыл бұрын
Now this is the explanation, i needed whole time Best teacher for a reason 🙏🙌
@ankushthakur2177
@ankushthakur2177 4 жыл бұрын
Such a tricky concept, but you made it very easy
@avinashyadav8944
@avinashyadav8944 4 жыл бұрын
thank you for your great effort in making this in depth JS course ...... please make keyboard shortcuts video on VSCODE.... it will increase the productivity
@parmarnaharsingh019
@parmarnaharsingh019 4 жыл бұрын
From जयपुर very good explaining everything
@baba_yaga9
@baba_yaga9 3 жыл бұрын
NOBODY explained such global context thing in such detail ever! I wish I had completed this whole JS series before jumping to your MERN bootcamp. Reached till React, but couldn't put pieces together like totally blank! & now things are getting clear & would complete the bootcamp more efficiently from the beginning in no time.
@serious6037
@serious6037 Жыл бұрын
Hey dude, love your videos. Keep up the good work. You earned my sub.
@ravi_sorathiya
@ravi_sorathiya 4 жыл бұрын
Notification At it's best! Present sir😉!
@rahulranjan2633
@rahulranjan2633 4 жыл бұрын
Hitesh sir, i finished your full stack mern course and backend using node js, i wanted to learn one more thing, that is automated email system on user signup and a personalized email for forgot and reset password, while i was searching for this i came to know about NODEMAILER, i went to their documentation , but i couldn't get anything there, it would be glad if you will explain about NODEMAILER .
@rindam.b
@rindam.b 2 жыл бұрын
If I declare a number, can we console the number before the declaration, why am I getting an error in this case?
@TechMainul
@TechMainul 2 жыл бұрын
Really advance concept . Thank you brother...........
@TheTechpreneurs
@TheTechpreneurs 4 жыл бұрын
You are the best❤️
@iambrijeshtoo
@iambrijeshtoo 8 күн бұрын
Thank you ❤
@programoftech9200
@programoftech9200 4 жыл бұрын
Will the let keywords also come in the global context ???
@codingforfun531
@codingforfun531 3 жыл бұрын
sir this hoisting concept is clearly explained by akshay saini video
@shubhamsingh8817
@shubhamsingh8817 4 жыл бұрын
Soo well explained ....Thnkew Sir And last assignment , it works without break too .👍🏻
@vijaynavale3919
@vijaynavale3919 4 жыл бұрын
Keep going 👍
@AnkushKumar-mk8ns
@AnkushKumar-mk8ns 3 жыл бұрын
merci merci... merci merci... merci merci... merci merci... merci merci... merci merci... merci merci... merci merci... merci merci...
@programoftech9200
@programoftech9200 4 жыл бұрын
Present Sir First Comment First View
@msms3260
@msms3260 3 жыл бұрын
I am lost on this topic. Maybe will catch up in future..
@anoops7974
@anoops7974 4 жыл бұрын
Now i started wondering what is the difference between scope and context. I thought global was a scope discussion.
@suprabhatkumar5478
@suprabhatkumar5478 4 жыл бұрын
Yes bro,, today I was researching on this topic and i felt it is very close to the concept of scope..
@kirankamath5891
@kirankamath5891 4 жыл бұрын
Scope actually refers to variable's existence in the program.
@gouthamrohan7116
@gouthamrohan7116 4 жыл бұрын
Hey Hitesh asked you more than 4 times about spacing a file and folder and you are able to execute while in windows we are getting error node 02/Basics/01\ Operations but unable to execute in windows once explain
@betecieai
@betecieai 4 жыл бұрын
Hey, are you using cmd in vscode or using windows cmd or git bash? If you using anything above mentioned then only do simple thing, write node 02 give tab then write the initial number of file suppose 01 and then give tab and hit enter it will work... Let me know if you still getting error.
@gouthamrohan7116
@gouthamrohan7116 4 жыл бұрын
@@betecieai its not working!!!! i am using vs code and terminal as powershell
@gouthamrohan7116
@gouthamrohan7116 4 жыл бұрын
@@betecieai what you told I am able to execute the problem lies when I am giving folder name and filename or either one of the names as capital!!! then i was unable to execute my program instead it shows as module not found
@HimanshuKumar-lw2fv
@HimanshuKumar-lw2fv 3 жыл бұрын
the below code is not throwing any error in vs code. If not throwing an error then why "True condition" is not getting printed??? var myName = "Himanshu"; if (myName === global.myName) { console.log("True condition"); }
@saichand1940
@saichand1940 4 жыл бұрын
So unlike java which executes line by line..how does javascript execute it?it first compiles everything to window and store and then execute the code?
@raghavgupta6186
@raghavgupta6186 4 жыл бұрын
Sir can you give one more example on this concept ? I was not able to link it😞
@kapilchhabra3028
@kapilchhabra3028 4 жыл бұрын
Amazing!!, love it :)
@muskansrivastava6224
@muskansrivastava6224 4 жыл бұрын
Hello Sir, I always watch ur all video...ur teaching method are really easy and best....please, can you make video on wordpress theme and plugin development
@pastdata-official
@pastdata-official 2 жыл бұрын
Is it possible to get a value from append/html function
@nishantjadhav416
@nishantjadhav416 3 жыл бұрын
But i found out that if ve declare function in different way like you define function name as var and then use = then create function . It does not store in global variable I guess because when i call it in start it shows error that it is not an function.
@YouAndImpact
@YouAndImpact 4 жыл бұрын
Great video 👍
@riteshpuley2891
@riteshpuley2891 4 жыл бұрын
Little bit of advanced, but still excited for more.
@mageshg91
@mageshg91 3 жыл бұрын
what is meant by window.myName
@Vaibhav_Singh_Buddy
@Vaibhav_Singh_Buddy 3 жыл бұрын
so what to call it instead of window in node? like in browser we callit window as a global context. but what about node? what we call in node?
@VishalSharmaVlogs18
@VishalSharmaVlogs18 Жыл бұрын
it is called golbal context in node also
@085-vaibhavgusain9
@085-vaibhavgusain9 4 жыл бұрын
Thank u
@kanhaiyakichannel7342
@kanhaiyakichannel7342 4 жыл бұрын
@Hitesh How we can access in node , you say it's different in node , then what is that?
@aaditaygarg4585
@aaditaygarg4585 4 жыл бұрын
Can we think of using namaste() instead of sayHello() in all of the video courses?
@IqbalAhmed-qk5ix
@IqbalAhmed-qk5ix 4 жыл бұрын
Thank u Sir
@avanthaditya8596
@avanthaditya8596 4 жыл бұрын
var sayHello = function () {} format doesn't work here.
@SameerKongath
@SameerKongath 4 жыл бұрын
Good Class
@priyanshujain8297
@priyanshujain8297 2 жыл бұрын
shortcut key for commenting??
@Vyomization
@Vyomization 3 жыл бұрын
Bro zoom in your screen.. It's unreadable on mobile screen..
@iammtw
@iammtw 4 жыл бұрын
Where is the exercises files?
@Kay.desu_
@Kay.desu_ 4 жыл бұрын
Which platform is suitable for JS?
@shreedharchavan7033
@shreedharchavan7033 2 жыл бұрын
Jsfiddle
@vraj3115
@vraj3115 4 жыл бұрын
#10minutesJS day 16!
@debdutsaha4316
@debdutsaha4316 4 жыл бұрын
In case of node.js instead of window it will be global
@raviparmar6682
@raviparmar6682 4 жыл бұрын
this concept is similar to hoesting in javascript.
@alltech-jg9hi
@alltech-jg9hi 4 жыл бұрын
ok i get it but am still scratching my head ,,,
@MegaRonnie2
@MegaRonnie2 3 жыл бұрын
I'm lost now
@Learner010
@Learner010 4 жыл бұрын
let keyword ?
@user-zl5je4pr3b
@user-zl5je4pr3b Жыл бұрын
👎👎👎👎
Code hoisting in javascript
16:49
Hitesh Choudhary
Рет қаралды 73 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 472 М.
А ВЫ УМЕЕТЕ ПЛАВАТЬ?? #shorts
00:21
Паша Осадчий
Рет қаралды 2,2 МЛН
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 18 МЛН
Or is Harriet Quinn good? #cosplay#joker #Harriet Quinn
00:20
佐助与鸣人
Рет қаралды 18 МЛН
What are Javascript engines
9:45
Hitesh Choudhary
Рет қаралды 165 М.
Контекст вызова функции. Фундаментальный JavaScript
21:51
Михаил Непомнящий
Рет қаралды 21 М.
JavaScript Under The Hood [2] - Execution Context
14:28
Traversy Media
Рет қаралды 80 М.
Scope chaining in javascript
9:29
Hitesh Choudhary
Рет қаралды 52 М.
Methods and objects in javascript
9:27
Hitesh Choudhary
Рет қаралды 52 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 587 М.
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Рет қаралды 172 М.
All useEffect Mistakes Every Junior React Developer Makes
22:23
Closure in javascript
10:49
Hitesh Choudhary
Рет қаралды 42 М.
А ВЫ УМЕЕТЕ ПЛАВАТЬ?? #shorts
00:21
Паша Осадчий
Рет қаралды 2,2 МЛН