Комментарии:
Love your videos and explanations of topics so everyone can understand :)
ОтветитьThank you!
Ответитьvar x = 0 do console.log(x) while(x>o)
ОтветитьYou r just perfect!
ОтветитьAwesome, thank you! Best explanation for this that i've read/watched. Sidenote: when i was running the example where 100 was expected, i was getting undefined. I needed to run setup() after, so that part stumped me for a bit.
function setup() {
for (var i = 0; i < 100; i++);
}
console.log(i);
}
setup() // ;)
He is the Professor from money heist but IT professional. :D
ОтветитьThanks so much for this. I had been wondering and had been meaning to find out at some point but your examples were superb to effectively demonstrate the difference. Amusingly I'd never realised that "for (int i = etc" in C++ only had i in scope inside the loop. I mean it makes sense but I was never consciously aware of it. I guess I rarely tried to re-use the counter outside of the loop, or if I did, I guess I must have fixed it on auto-pilot without really thinking about it properly.
Ответитьi came here for the let,
but i stayed for the jokes xD
This was one of the most entartaining video that I watched on `let` and `var` pretty fun, thank you :)
ОтветитьWhen I'm down I watch Coding train videos and the sun shines again :) Thanks for being such an awesome human being and teacher!
ОтветитьI almost always use let and never use var.
Ответить"let" is a keyword frequently seen in functional programming languages, which JS is slowly inching closer to becoming at least a language that allows for fully functional code.
ОтветитьThis video was fantastic.
ОтветитьShouldnt the error be "i is not initialized"? Saying it is "not defined" is wrong because something not being defined doesnt throw an error. If you do "let i; console.log(i)", it doesnt throw an error even though it is not defined.
ОтветитьI need some help on node loop
want to print n elements from the array after 10 seconds till complete array in a node so which is a better way
ex:
array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print:
1
2
sleep 10 sec
3
4
sleep 10 sec
.
.
9
10
in this way
Human body? Do you even lift, bro?
Ответитьlet was likely used because it's often used as a keyword in functional programming keywords for a long time. It's also used in mathematics to assign values to algebraic values. In terms of linguistics, you're asking the compiler to "please LET x equal [value]".
Ответить"2015... which is quite a while ago at this point [in 2017]" me watching in 2022... 👁👄👁
ОтветитьThank you bearded angel in human skin!!
Ответитьwhenever i saw you, i laugh lol <3
Ответитьwow
ОтветитьThis is actually very informative AND entertaining/funny. That is unique, not many have this talent. Makes learning much easier for people like me! Thanks!
Ответитьvery informative
Ответитьexpertly explained.
Ответитьbest teacher no cap
Ответитьfor(var i=1;i<=5;i++)
{
setTimeout(function(){ console.log(i) },1000);
}
Why does it give o/p 6 ?
It should give
1
2
3
4
5
...but it isnt,, whyy ??..
Plz give me an explanation related to hoisting
If we manage to invent full-fledged robots but we're still stuck with JavaScript we'll know that our civilization has FAILED, lol
ОтветитьLet allow or acess only in block
Var allow or acess in entire function it belongs
kg vs lb
Ответитьtoo much drama.
Ответитьyou should delete the part you said wrong, now i will confuse var and let rest of my life
ОтветитьI have always used let, but I didn't know why until now :)
ОтветитьWhat's your age, Sir?
I'm 17.
It helped me a loooooot.
I am a beginner. I know java But not script can you make it more basic. please
ОтветитьYou look such a fun person but I don't understand a thing. I wonder if there is any tutorial that teaches not another tech dudes but rather real beginners.
Ответитьget to the poiiiiinnnnntttttttttttttttttt
Ответитьso the short version of this is: always use let ?
Ответитьprogrammer in 2021: Oh this is useful
programmer since 2015: who makes videos on this topic 😑
He is the one of the best presenter i have seen in my life.
ОтветитьNow let also supports hoisting
ОтветитьSo finally I understand the difference between let and var
ОтветитьYour behind my scene 😍
Ответитьlet: Look at me I'm the var now :>>
Ответитьwhat I like about your videos is I don't feel like I'm studying at, all pretty cool .. sometimes I just play them in the background and sleep (this mean they reach the level of comfort to me which not so many can do)
but what I dislike about you is you're always putting yourself down and not believing in what you already have which's annoying
just a flying opinion :)
Great work, you are the best: keep It on!
ОтветитьDoes hoisting happen in case of let also? Or any similar transpiling on let keyword before the interpreter can actually work on the instructions?
Ответитьya allah plz forgive me stop watching this.
ОтветитьJavaScript was conceived as a shit language. The creator even used the word Java because Java was popular back then. Smh. I wish there was a better language for web scripting. Fml
Ответить