Understand scope & hoisting in JavaScript in the most Effective and Funniest way

preview_player
Показать описание
You must have a crystal clear idea about scope to become a better javascript developer. Besides, you cant be an expert if you dont know hoisting.

This video makes you smart enough to explain hoisting and scope to your grandmother. Thats my promise.

Рекомендации по теме
Комментарии
Автор

I've been watching your videos for a while and now I feel like a javascript ninja that can kick a PHP programmer ass with my awesome js code.

krliky
Автор

This is hilarious and I love it. Thank you

LimitlessCarnage
Автор

Surely, you meant *Kanye, * not Kayne. And I didn't realize Kim was so old already. (Or was that a Freudian slip? Lol)

asmartbajan
Автор

never ever came across any video which explains any concept in such a unique way. never gonna forget scoping and hoisting now. kudos to you dude!

hackerofhearts
Автор

nice analogous tutorial :).Must say you have interesting sense of humour

harryy
Автор

function x(){
function a(){
console.log(b);
}
a();
var b = 7;
}

x(); // Why is giving undefined as you said function hoisted top of it.

tameshwarnirmalkartest
Автор

var a =10;

function x(){
console.log(a);
var a = 20;
}

x(); // Again undefined why?

tameshwarnirmalkartest
Автор

did you also just do closures in this video?

anniekhaliq
Автор

function x(){
console.log(a);
var a = 10;

}
x(); again this is coming undefined why?

tameshwarnirmalkartest
Автор

Despite the fact that you have the second worst eng accent in the universe that was a super useful and nice presentation. I just wondered why hoisting was necessary??? is it just the fact that ECMA script didn't want to show an error message on that particular fact like other languages? I guess hoisting is not a name given by the ECMA Int.

shoummorauth