16.1: let vs var - Topics of JavaScript/ES6

preview_player
Показать описание
In this video, I cover the "let" keyword in ES6 JavaScript. I discuss the differences between "let" and "var" (block scope vs. functional scope).

Contact:

Help us caption & translate this video!

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

i learned programming & javascript thanks of you Dan because i wanted to do generativ art, now i'm a web developer it's my full time job, thank you :)

pierrem
Автор

"A variable should have the smallest scope that is needed." I like that.

DavidBadilloMusic
Автор

European concortium of mango loving astronauts, sounds reasonable xD

crehenge
Автор

Love your stuff, Dan! You're becoming my go-to resource, whenever I'm confused about a concept. Keep up the good work!

theanthologist
Автор

When I'm down I watch Coding train videos and the sun shines again :) Thanks for being such an awesome human being and teacher!

leeloohad
Автор

By playing around with var and let I kind of got the idea of how it worked but once you explained that "hoisting" term, things really got clear and I remembered what my high school programming teacher used to say regarding C++ and Pascal: "If you're going to declare something, do it at the top of the file!".
That really clicked in my brain once you explained what hoisting was :D
Keep up the good work bro. You're killing it!

goncalopedro
Автор

Awesome video -- your breakdown of the differences between var and let was perfect. I love the energy too. Thanks!

dankang
Автор

this was perfectly explained, love the energy!

jermainebrayne
Автор

This doesn't have to be re-done as you said in the video, this is nice honestly, there are so many boring programming videos on the web that the enthusiasm really helps, similar feelings to CodeCourse :)

Keep it up man, 10/10

jackhales
Автор

Awesome video - very clearly defined the diff between var and let !!

gagangupta
Автор

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!

JanneWolterbeek
Автор

Wow, amazing! Your explanation style is so verbose (in a good sense) that I can just listen to many of the videos, while doing chores and stuff, and understand the ideas being presented. Simply marvelous!

nicksmeta
Автор

man you are funny and also explaining in good detail at same time. i love this kind of presentation.
thank you.

VantazeVibesWorld
Автор

best video out there explaining let vs. var!

thechenoutdoors
Автор

Exactly the same issue I have with scope, I learned how to program with Java and think in the same fashion. You are a great teacher! Thank you

mattgraves
Автор

Great video, i just started coding, in JS coming from a background in C++, and and i mostly learned to code JS from mini bootcamp that used ES6 and now i am going back and doing intro courses, and a lot of them use var and stuff and write in in concatenated strings over just using a template string, i much prefer the ES6 stuff and i am glad i learned it first.

roltthehunter
Автор

This guy made me love programming through his lessons
thanks man !

ciwanye
Автор

Wow..this is excellent stuff..i have been wracking my head over let vs var for a while and I finally get it!

sowmyavijayakumar
Автор

Crystal clear explanation of the difference, thanks a lot! ♥
I've been using var all my life (more like for the few months ago), thinking that the variable is limited to its block like C++ and Java, after watching this, I was like what!

jojojawjaw
Автор

I am learning JS on free code camp now and you explain things so well its surprising easy for me to fill out challenges. thanks a lot and please keep making more videos! its a shame that i havent found your channel earlier

bearded-cat