Hitesh you are the best PROGRAMMING teacher on YT hands down! I love how I can watch short videos each day rather than watching a 4 hour JS Basics tutorial. It allows me to actually grasp the concepts and principles rather than flying through it and tiring myself out! Thank you!
the way of explain the topics is soo wonderful . you are the best teacher of java script.. you use the practical knowledge so it is very easy to understand all the topics . sir i request to make a full stack series separately . thanks sir from the bottom of my heart ........................................................
I'm watching your videos since morning and know I'm loving both your videos and JS. I'm in love with JS and am so amazed at how beautiful is this and way different from the rest languages. I bought paid course worth 15k but found it not that much worthful than these friendly paced videos.
the last example about the variable name = "Hitesh" and function variable name = "Mr. H" is similar to the concept of Local Variable scopes in C and other languages
It's called a function expression, like when you declare a variable, let,var, const only you are storing a function inside of it. Javascript treats it like any other variable and assigns it to the call stack and it's value to the stack memory instead of the heap memory where all the other reference data type pointers are stored ( arrays, objects, functions ).
this is same as modularity, function and variable scope; more specifically the code between curly braces { } in C language; but Yes for a JS kind of language, this is great.
at 13:21 if you declare a variable using a var, it will return undefined but if you declare a variable using let or const, it will return it was never defined!
Anyone have any idea how to do a vanilla, javascript only, game "winStreak" counter? So "winStreak" starts as 0, then if someone wins (winning is as easy as pushing the "win" button (a link in a list of links)) *win == 1*, it adds one to the "winStreak" but if someone loses *lose == 0*, it sets "winStreak" back equal to 0- then console.log("Win Streak:" + winStreak + ".")? I've tried like 5-7 different solutions and the furthest I can get is a "winStreak" of 1 no matter how many times I win.
sir i have some doubts ,i had watched your python web automation video,i tried to automate google meet,everything is working well except when i join the meet with the join id,i switch to the child node correctly and interacted with evry element,algood,except the alert box on the chld window can not be closed,it says no such alert,the alert requests for cam mic permission whcih in want to dismiss,Stuck for two days?any suggestion
Thank you so much hitesh 🚀Your explanation technique and the simplicity for the topic is just wonderful, you make my concept very much much clear to javascript specially this context,Hoisting.. Thanks man ,More power to you👌👍🏻
In Variable Hoisting, if we try to access before declaration it will return undefined right? But for me when I try with string datatype, it is returning a value. Can you explain this?
If we try to change the name variable inside function without declaring it using var , then it would refer to the lower context name variable . Eg in sayName if we don't declare namme variable again using var , then it will refer to global context for that variable?
Thanks for this interessant video, sir can you give us some tips on how to improve problem-solving skills, and give us some exercise after some videos, thanks a lot
why are we not using keyword "let" ? It seems when I used the same example with "let" , it doesnt assign "undefined" rather it counts it as not being declared at all
Hi Hitesh, Good Afternoon :-) Is the global execution context the same or different when we execute the js in browser and inside an VS editor? Because, The below code yields different results when executed at browser console and in Visual code(node.js) env. console.log(name) //undefined var name = "hoisting"; function greet(){ console.log(name); //undefined var name = "function hoisting"; console.log(name); //function hoisting } greet(); console.log(name); //hoisting ----------------------------------------- Browser console output: hoisting undefined function hoisting hoisting ----------------------------------------- Out of node.js(Visual Studio Code:) undefined undefined function hoisting hoisting ----------------------------------------- Please suggest.
See everything you defined is known by global context But if you declared function then what ever thing come into it is known by only that function. Other variables which is global can't have access of that function declaration. You will get clear when you see scope chain video may be he will put it tommorow
Full course is FREE and will be available here
courses.learncodeonline.in/learn/Complete-Javascript-course
It's a fantastic explanation told in no Js course I saw on utube .
Then I don't know why does people dislike this video?? I liked it.
Sir plz reply me on instagram.
I am waiting every single days of new video of this js series. ❤️
Hitesh you are the best PROGRAMMING teacher on YT hands down! I love how I can watch short videos each day rather than watching a 4 hour JS Basics tutorial. It allows me to actually grasp the concepts and principles rather than flying through it and tiring myself out! Thank you!
If you digest everything what he explained in this video, You have understood half of js , Thank you for such a amazing video
Best ever explanation for js context.Even after i finished my first react project your js series giving me a lot of basic knowledge thank u sir♥️
Watching and applying this concepts again and again while coding is actually fun.
the way of explain the topics is soo wonderful . you are the best teacher of java script.. you use the practical knowledge so it is very easy to understand all the topics . sir i request to make a full stack series separately . thanks sir from the bottom of my heart ........................................................
It's a fantastic explanation told in no Js course I saw on utube .
Then I don't know why does people dislike this video?? I liked it.
Well well well , new day new morning
But incomplete without a js video !
#YourVideosAreMoreAddictiveThanCaffeine
who cares about the duration... if you get explanation like this 😍
This video helps me to clear why I ran into problems dealing with hoisting.
Thank you very well explained , I learned something new and understand the concpet more deeply , Thanks alot 🙌
I'm watching your videos since morning and know I'm loving both your videos and JS. I'm in love with JS and am so amazed at how beautiful is this and way different from the rest languages.
I bought paid course worth 15k but found it not that much worthful than these friendly paced videos.
U making javascript so easy.
Aise lag raha hai jaise ki class mai bhietkar dekrahahu 😍
Thanks sir for this amazing course 😍
Omg it's too interesting ....this gonna create huge bug for beginners if they don't watch your videos🤗🤗
Thank you for explaining in simple and effectively. Now i don't get confused in JS hoisting.
the last example about the variable name = "Hitesh" and function variable name = "Mr. H" is similar to the concept of Local Variable scopes in C and other languages
Finally you have resolved my project bug. And thanks for making me understand why the error I was getting.
It's called a function expression, like when you declare a variable, let,var, const only you are storing a function inside of it.
Javascript treats it like any other variable and assigns it to the call stack and it's value to the stack memory instead of the heap memory where all the other reference data type pointers are stored ( arrays, objects, functions ).
That line was good, function declaration are scanned and made available while variable declaration are scanned and made undefined.
Super, nobody told me this thing earlier
this is same as modularity, function and variable scope; more specifically the code between curly braces { } in C language; but Yes for a JS kind of language, this is great.
at 13:21 if you declare a variable using a var, it will return undefined but if you declare a variable using let or const, it will return it was never defined!
It was rather a simple , brief and precise video u r such an amazing guy
Anyone have any idea how to do a vanilla, javascript only, game "winStreak" counter? So "winStreak" starts as 0, then if someone wins (winning is as easy as pushing the "win" button (a link in a list of links)) *win == 1*, it adds one to the "winStreak" but if someone loses *lose == 0*, it sets "winStreak" back equal to 0- then console.log("Win Streak:" + winStreak + ".")? I've tried like 5-7 different solutions and the furthest I can get is a "winStreak" of 1 no matter how many times I win.
Is waali video me ais tes ho gyi 😭😭
But I understood everything 😀😀😀
Thanku sir❤️
Very precisely explained!! Loved it❤️❤️
here comes the legend of programming Mr hitesh love from pakistan
Seriously , a fantastic thing to learn !.. . I thought I knw javascript before watching this.😂😂😂
The best video about hoisting so far.
finnaly i get to understand this concept of hoisting. Thank you so much
Wow I just loved the way you explained ✨️.
sir i have some doubts ,i had watched your python web automation video,i tried to automate google meet,everything is working well except when i join the meet with the join id,i switch to the child node correctly and interacted with evry element,algood,except the alert box on the chld window can not be closed,it says no such alert,the alert requests for cam mic permission whcih in want to dismiss,Stuck for two days?any suggestion
i tried wait methods too still no luck
10:20 function expressions
Thank you so much hitesh 🚀Your explanation technique and the simplicity for the topic is just wonderful, you make my concept very much much clear to javascript specially this context,Hoisting..
Thanks man ,More power to you👌👍🏻
that was a nice way of explaining the execution context through big tipper.... :-)
U r really made it man,.... Too easy
what if a function needs something from the global context?
Then just call that variable or method name that you want global context will provide it to you if defined it, no need to create variable again
Really great video sir finally i understood crazy concept of global variable
you are just a great coach 💌💌
Great explanation ever❤❤
your explaining was awesome I loved it
console.log(name);
doing it in the global scope shows name is deprecated, why? and how can i resolve this?
Rock solid explanation..!!
Keep going..!!
Wow-what an explanation...amazing
Crystal Clear 🔥
In Variable Hoisting, if we try to access before declaration it will return undefined right? But for me when I try with string datatype, it is returning a value. Can you explain this?
very good tutorials
It was really interesting one . Thank you sir.
Sir this is amazing i loved this series
Wow !! What a great tutorial , I loved it
confusing concept but very important in terms of processing and sequence
best explanation for hoisting.
Brilliant video at such a perfect time...
thanks alott sir for teaching us in such a great way
if we replace var name with let name, why does it give an error instead of undefined?
#17minutesJS day 17! wooow finally it goes above 10 min 😅
10:52 What MumboJumbo thing are you talking about ??
You taught that so easily !
instead of parseInt you can simply use + operator eg- let bill = +a ;
great video! could we have a video on how you costumized your vs code? colors ,themes and everything
Awesome! I learned a new concept today
does context means scope
I am enjoying this video series sir jii
Super context content❤❤😍
If we try to change the name variable inside function without declaring it using var , then it would refer to the lower context name variable .
Eg in sayName if we don't declare namme variable again using var , then it will refer to global context for that variable?
Yes Right
@@vijaynavale3919 ok 👍 thanks buddy
Best Explaination.....nailed it.
Awesome, i never thought about it
You are teaching very good, really appreciate. But in 2020 we are still using var wouldn't be better if we use ES6.
Thank you bhaiya
Thanks for a bit longer video
What's this code editor? Looks smooth 😅
Vs code with lots of modifications and extensions.
That is vscode
Loved the explanation!!
variable'ish functions is called function expressions.:)
Awesome explanation sirr
i need to know about these extensions
I just became a fan of your vs code theme and file icon theme.please share your vs code theme and file icon theme with us please
Local Variable and global variable words would have made Context things so easy to understand.
Anyways Good content. Thanks.
Splendid job sir
hello sir, i know nodejs for server side but i see that many companies and internships are asking for php. So should i learn php now as well?
Oh which state are u my frnd?
Thank you buddy very well explained :)
Great !
This series is really turning out to be different
Thanks for this interessant video, sir can you give us some tips on how to improve problem-solving skills, and give us some exercise after some videos, thanks a lot
why are we not using keyword "let" ?
It seems when I used the same example with "let" , it doesnt assign "undefined"
rather it counts it as not being declared at all
"let" is used to define block-level of scop
such an amazing content!!
Hey, thanks for this amazing video😊, it would be great if you would have covered class hoisting too😅
Pretty interesting things are in js
Hi Hitesh,
Good Afternoon :-)
Is the global execution context the same or different when we execute the js in browser and inside an VS editor?
Because, The below code yields different results when executed at browser console and in Visual code(node.js) env.
console.log(name) //undefined
var name = "hoisting";
function greet(){
console.log(name); //undefined
var name = "function hoisting";
console.log(name); //function hoisting
}
greet();
console.log(name); //hoisting
-----------------------------------------
Browser console output:
hoisting
undefined
function hoisting
hoisting
-----------------------------------------
Out of node.js(Visual Studio Code:)
undefined
undefined
function hoisting
hoisting
-----------------------------------------
Please suggest.
#enjoyed a lot :) i love to watch long videos haha ...can u use my name as an example in any of your upcoming video for a singe tym...
😃😃😃😃
Great explanation!
Amazing juz love it...
Amazing!, Love it...
Where is the playlist man 😂.
courses.learncodeonline.in/learn/Complete-Javascript-course
Thanks I know about the UA-cam issue of showing double videos in playlist.lot of love from India.
Awesome video sir
Please explain hosting
great stuff here!!
Great explanation
Haha i tried this in previous video after context I got this error and Now my doubt is clear😂.
I am Slightly getting Confused with Context
See everything you defined is known by global context
But if you declared function then what ever thing come into it is known by only that function.
Other variables which is global can't have access of that function declaration.
You will get clear when you see scope chain video may be he will put it tommorow
what is it?
Keep going 👍