Комментарии:
Based.
ОтветитьOn point thankyou :)
ОтветитьIn less than 4 minutes you explained to me in an easily understandable manner what 30 minute videos and several pages of documentation couldn't get through my skull. Thank you!
ОтветитьAnd if you use for(i = 0; i < 3; i++) without assigning neither let nor var keyword, the i becomes global variable.
ОтветитьThank you for making this 80 times easier than Codeacademy lol
ОтветитьThank you once again Beau for clarifying.
ОтветитьEverything is clear to me now. Thanks for explaining the difference between const, let and var.
ОтветитьVery helpful. Thank you!
Ответитьthanks bro
Ответить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
crisp and clear,covered everything needed less than 4mins.THANKS
Ответитьtl;dr
let - local variables that can be changed
var - global variables that can be changed
const - constant variables that cannot be changed
Thank you!!!!!!!!!!!!!!!!!!!!!
ОтветитьThanks a lot dude..
Ответитьok the var and const is easy thing to remember when first learn, so the let key point is scoop right?
ОтветитьBest exact ,to the point,explanation. Beautiful.
Ответитьdid you know that semicolons are optional? Why bother then?
Ответитьlet: block-lvl VARs - values can be changed
const: values never change
var: srsly u don need an explaination for dis:)
This guy makes you think you're watching this video at 1.5x speed
Ответитьvar also binds itself to window object, but let and const dont do that
ОтветитьUr voice is weird
ОтветитьBro ...what are the basic things are known in js
Ответитьwatched at 0.5* speed
ОтветитьIf we used code for hack, is that counting as for good, hack++ :D
Ответитьwithout explanation on hoisting, it is not clear why 'var' variable is already available even before it is defined.
ОтветитьThank you for keeping it short and to the point.
Ответитьgood explanation
Ответитьyou can push to a const variable thats important (:
Ответитьshould you use let instead of var when you can or does it not really matter?
Ответитьshould you use let instead of var when you can or does it not really matter?
ОтветитьThat helped a great deal thanks.
ОтветитьDoes this mean we don't need to change or "increment" i anymore? We can use let in loops, and have all of them be i = foo, i < bar, i++?
ОтветитьThis is how you explain it, idk what's up with this 20 min vidoes, let vs var vs const
ОтветитьClear explanations, thanks for sharing!
ОтветитьMany thanks! Much clearer now!
ОтветитьI just use var, closures, and caps to indicate constants. I'll use const and let in 5 years once I don't need to depend on a compiler to interpret them.
Ответитьgo beau! go beau! I love this guy!
ОтветитьThanks
Ответить