kya baat h... bro... maine duniya jahaan ki video dekh daali mujhe samjh nahi aaya... lekin tumne itne achhe se explained kiya h... ki jo b doubt tha clear ho gya. thanks bro
thank you so much sir you are the one jisko me itne time se search kr rhi thi......... thank you so much this amazing tutorial, but ye bht achha hoga agr ap hame is tutorials se related practice exercise bta de, q k basics to smjh aa jate h bt inko projects me kaise use kre smjh nhi aata... kya ap kuch practice task bta skte hai jo generally hum kisi projects me use kr ske, jinko krne se hmare basics or zyada clear ho jaaye or hmara confidence b badh jaaye coading k liye:)
Hi Kajal, HTML, CSS, JS complete karne k baad iss playlist ko follow kijiye isme project hai and saath me jo sikh rahi unko kaise project me use karna hai wo bhi dekhne ko milega ua-cam.com/play/PLbGui_ZYuhih078N9TTOqTANeYVwqkPLl.html
Sir I have doubt in variable hosting concept.. Aap ne bataya ki javascript ka compiler var ko top kr deta hai ... global variables me toh kahin v intialaize krne pr o/p aa rha pr...pr inside function me wo concept kaam nhi kr rha ye aap bataye nhi
it doesn't matter even if you declare it at the end . just keep one thing in mind that if you try to access variable before assigning value to that variable (before defining variable) then it will give not defined error. and type script is javascript only. but the different form of java script. i.e wrapper of java script. anyone please correct me if I am wrong
?? Please explain why hoisting not working in the below case: console.log(b); //Error: b is not defined b=30; console.log(b); //30 Why error on first line if hoisting works, first console statement should print undefined but it's an error???
@logiconutube because u've never declared or defined what b is. Here, JavaScript doesn't have any idea what b is. That's why u are getting an error that b is not defined. If you would have defined b as a variable, anywhere in the global scope, it would displayed its value correctly.
sir aap jo sentance display karane ke liye use karte hai .document.write("kundan"); but website me ye bhi diya gya hai document.GetElementById.InnerHTML="kundan", dono ka matlab kya hai please samjhaye
Bro I have doubt ÷ 1.jab humne VAR i ki value already declare kar di hai vo bi global variable main 2. To function ke ander i print krne pr undefined ki jagah hello print hona chahiye na Please clear my query thank you
Becoz function hmesha phle local variables ko prefer krega jb local m vo value nhi milta tb bhr search krta h yha pr I mil gya to vo global search nhi kiya
As per Your explanantion var variable = 10; (()=>{ console.log(variable); // undefined variable = 20; console.log(variable); // 20 })(); var variable = 30; console.log(variable); Answer Should be : undeifned 20, 30 but actual answer is 10,20,30
Sir, ye explain karo..... a = 10; b = 10; document.write(a +''+ b); maine var keyword nahi type kiyaa..... phir bhi output baraabar aa rahaa hai..... aisaa q ?????
In JavaScript, if you simply write a = 10; without explicitly declaring the variable a using var, let, or const, JavaScript will implicitly declare a in the global scope (if not in strict mode) or in the local scope (if in strict mode).
I think your channel is the best hindi programming channel. Awesome. Keep it up!
Amazing Bro! Nobody can explain it like this!
Itna easy tutorial wobhi free me,,thank you sir. Dua karunga apkeliye ❤🇧🇩
Kya jobardast samjhaya hai app ne...Great video :)
kya baat h... bro... maine duniya jahaan ki video dekh daali mujhe samjh nahi aaya... lekin tumne itne achhe se explained kiya h... ki jo b doubt tha clear ho gya. thanks bro
Thank you for this amazing basic course, it totally covers everything, may god bless you brother
Excellent explanation and easily understand java script....very very nice teaching.
Great! It helped me . Thank you brother.
You explained very nicely 👍
If anyone understand once properly then entire life not forgot..
Best explanation ever on YoutTube. Thank you
Mah Man, Your explanations are top notch beginner friendly, Keep up this good work.
You deserve more views :)
(You are doing Great job) make Series for front end developer
You have cleared this concept very well. Thank you so much ❤.
One of the best explanation 👌
Sir we appreciate your every level language lectures
And your are my best and favourite teacher in my web development career Thanks GeekyShows🧡💚💓🌹💙
your explanation is outstanding bro always....❤
You explain the concept nicely bro. God bless you🙏. Love you bro
This video is still helping many students like me thank u broo! Love from Pakistan
Fabolous explanation inside the video, please add let and const with hoisting concepts
best video hoisting in youtube channel
bhai aap jo samjhate ho na dhaga khol dete ho concept ka .or sabse achha bat ye hai ki jo programming me weak hai wo v aapk concept samjh leta hai
Fabulous way of teaching 👍👍👍
Thank you so much always you gave us a valuable series...
bro.. god level teaching ... tumhare vids padh ke hi davidshariff ke test dunga
Very useful information you explained #varDeclarationHoisting
aaj ke liyea itna hi he, kal is video se shuru karongg good night
explanation level: master
How come you made us understand easily ❤
bro concept is nicely cleared thanks bro
Thanks bro... amazing explanation.
it is a really very clear and easy way to understand Thanku
Excellent method of your teaching i understood all concept
bahut badhiya samjhate ho bro
Ap kafi acha samjate ho!..
thank you so much sir you are the one jisko me itne time se search kr rhi thi......... thank you so much this amazing tutorial, but ye bht achha hoga agr ap hame is tutorials se related practice exercise bta de, q k basics to smjh aa jate h bt inko projects me kaise use kre smjh nhi aata... kya ap kuch practice task bta skte hai jo generally hum kisi projects me use kr ske, jinko krne se hmare basics or zyada clear ho jaaye or hmara confidence b badh jaaye coading k liye:)
Hi Kajal, HTML, CSS, JS complete karne k baad iss playlist ko follow kijiye isme project hai and saath me jo sikh rahi unko kaise project me use karna hai wo bhi dekhne ko milega ua-cam.com/play/PLbGui_ZYuhih078N9TTOqTANeYVwqkPLl.html
@@geekyshows thank you so much reply, I will follow it:)
3:27 Compile phase javascript mei kaise hoga ? Javascript toh scripting language hai.. uska compilation nhi interpretation hona chahiye....
Tussi great ho jahapanah tofu kubul karo GREAT JOB FANTASTIC
Thank you bro. Nice explanation.
best explanation sir thank you
kya samjhaaya hai bhai... awesome
Very well explained..
Thanks bro this is very clear one
nice video good explanation. please share more videos on JavaScript
There are two Playlist Core JavaScript 180 Videos and Advance JavaScript Kindly follow those playlist ThankS
@@geekyshowswhere are videos related to advanced JavaScript ?
Bhai meri job lagne ke bad mai aapke channel ke liye donate karunga.
Thanks
mein bhi
Thanks Bro..!!!. Nice Work, Keep it up..!!!
Superb.. thank you very much for sharing your knowledge
Great Tutorial, undoubtedly.
Thank you Bro Very Easy to Understand 🙏🏻
Very nice way to clear
Thanks for making this informative video...love you
variable hoisting is only for var keyword not for let and cost i have checked it in visual studio codes.
God level explanation!
Thank you so much..your tutorial very helpful
Thanku...bhai 👍🏻
Thanks for the nicely explain!! ❤️👍:) You are champ bro 😀
Sir is function variable also executes like that
You are awesome brother,
thaks for amazing turtorial
Thanks sir....It was very helpful....
Best Explanation
Great video ❤️
Sir I have doubt in variable hosting concept..
Aap ne bataya ki javascript ka compiler var ko top kr deta hai ... global variables me toh kahin v intialaize krne pr o/p aa rha pr...pr inside function me wo concept kaam nhi kr rha ye aap bataye nhi
Javascript ka compiler nhi hota... Interpreter hota hai... Kyuki JavaScript programming language nhi hai, woh scripting language hai..
Nice Explanation
Thanks for the clear explanation
ek dum jhakass samjhay
very well explained!!
nice understanding
Sir please make a video on let hoisting and how it works inside if else
Super Amazing! bro
Nahi samjh me aya..i know. aap really antaryami ho. Best Channel. Thanks
thanxx very easy to understand
Is hoisting is similarly work as a typescript. I mean to say in typescript we need to declare a variable and its type at the beginning.
it doesn't matter even if you declare it at the end . just keep one thing in mind that if you try to access variable before assigning value to that variable (before defining variable) then it will give not defined error. and type script is javascript only. but the different form of java script. i.e wrapper of java script. anyone please correct me if I am wrong
good explaination
Nice video. Good job
nice explanation !!!
Very nyc 🎉
?? Please explain why hoisting not working in the below case:
console.log(b); //Error: b is not defined
b=30;
console.log(b); //30
Why error on first line if hoisting works, first console statement should print undefined but it's an error???
You are not declaring the variable. run below section of code
1.
console.log(b);
b = 30;
2.
console.log(b);
var b = 30;
@logiconutube because u've never declared or defined what b is. Here, JavaScript doesn't have any idea what b is. That's why u are getting an error that b is not defined. If you would have defined b as a variable, anywhere in the global scope, it would displayed its value correctly.
sir aap jo sentance display karane ke liye use karte hai .document.write("kundan");
but website me ye bhi diya gya hai document.GetElementById.InnerHTML="kundan",
dono ka matlab kya hai please samjhaye
If you use document.write then all the elements in body will be removed. So that's why we use getelementbyid.innerhtml = now write your html :)
good job bro
Bro I have doubt ÷
1.jab humne VAR i ki value already declare kar di hai vo bi global variable main
2. To function ke ander i print krne pr undefined ki jagah hello print hona chahiye na
Please clear my query thank you
Becoz function hmesha phle local variables ko prefer krega jb local m vo value nhi milta tb bhr search krta h yha pr I mil gya to vo global search nhi kiya
Oh my man ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
Thank you so much!
Thank You Sir
thanks you sir..
Awesome video
var variable = 10;
(()=>{
console.log(variable); // undefined
variable = 20;
console.log(variable); // 20
})();
console.log(variable);
var variable = 30
great sir
Thank you
As per Your explanantion
var variable = 10;
(()=>{
console.log(variable); // undefined
variable = 20;
console.log(variable); // 20
})();
var variable = 30;
console.log(variable);
Answer Should be : undeifned 20, 30
but actual answer is 10,20,30
Thank you so much sir
var ky jaga let or const q nhi use kya apne sir?
Hello sir....muje angular padh nah hai..
Aap ke pure series mein angular kahi nahi hai...pls muje guide kare.
Love you vai
nice man
Sir, ye explain karo.....
a = 10;
b = 10;
document.write(a +''+ b);
maine var keyword nahi type kiyaa..... phir bhi output baraabar aa rahaa hai..... aisaa q ?????
compiled version
/*
var a;
a = 10;
var b;
b = 10;
document.write(a +''+ b);
*/
Because the compiler read 'a' and 'b' which are initialised as a global variable.
In JavaScript, if you simply write a = 10; without explicitly declaring the variable a using var, let, or const, JavaScript will implicitly declare a in the global scope (if not in strict mode) or in the local scope (if in strict mode).
I tought it was about variable hosting :D
Hoisting in JavaScript
var a=10;
document.write(a,b);
var b=20;
document.write(a,b);
function display(){
document.write(a);
var a;
}
display()
please explain this example
var variable = 10;
(()=>{
console.log(variable); // undefined
variable = 20;
console.log(variable); // 20
})();
🙏🙏🙏🙏🙏🙏🙏🙏