Комментарии •

  • @pierrem2983
    @pierrem2983 6 лет назад +208

    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 :)

    • @khw9082
      @khw9082 4 года назад +2

      Would you mind telling me how long it took? I am learning as well.

    • @r_u_p_d9776
      @r_u_p_d9776 4 года назад +1

      @@khw9082 if you practice daily it would take only 1-1.15 months to master JS (only);

    • @khw9082
      @khw9082 4 года назад

      @@r_u_p_d9776 thanks a lot

    • @r_u_p_d9776
      @r_u_p_d9776 4 года назад

      @@khw9082 no problem buddy.

    • @Bayo106
      @Bayo106 4 года назад +29

      @@khw9082 lol this is not true. Even javascript developers with 5 years experience have not mastered Javascript

  • @DavidBadilloMusic
    @DavidBadilloMusic 5 лет назад +46

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

  • @crehenge2386
    @crehenge2386 6 лет назад +305

    European concortium of mango loving astronauts, sounds reasonable xD

  • @leeloohad
    @leeloohad 2 года назад +6

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

  • @theanthologist9567
    @theanthologist9567 5 лет назад +4

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

  • @jackhales6179
    @jackhales6179 6 лет назад +10

    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

  • @goncalopedro9054
    @goncalopedro9054 5 лет назад +11

    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!

  • @jermainebrayne437
    @jermainebrayne437 6 лет назад +13

    this was perfectly explained, love the energy!

  • @dankang06
    @dankang06 6 лет назад +3

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

  • @gagangupta1255
    @gagangupta1255 6 лет назад +20

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

  • @nicksmeta
    @nicksmeta 3 года назад +4

    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!

  • @JanneWolterbeek
    @JanneWolterbeek 2 года назад +3

    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!

  • @VantageVibesWorld
    @VantageVibesWorld 6 лет назад +2

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

  • @thechenoutdoors3050
    @thechenoutdoors3050 5 лет назад +4

    best video out there explaining let vs. var!

  • @ciwanye2291
    @ciwanye2291 5 лет назад +2

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

  • @heksqer1022
    @heksqer1022 5 лет назад +1

    This was a great video !! This had me confused for a loooong time !

  • @sowmyavijayakumar9766
    @sowmyavijayakumar9766 6 лет назад

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

  • @theantibeta
    @theantibeta 6 лет назад +94

    ECMAScript === European Computer Manufacturers Association Script

    • @BloodyScythe666
      @BloodyScythe666 6 лет назад +12

      I think that'd be single equal since triple equal will compare those two and will return false :P

    • @theantibeta
      @theantibeta 6 лет назад +5

      Right, but, did you see that decorator '

    • @BloodyScythe666
      @BloodyScythe666 6 лет назад +2

      Fair enough!

    • @hishammubarak3421
      @hishammubarak3421 6 лет назад +1

      Thank you

    • @sharank
      @sharank 6 лет назад +2

      I dont know. It looks like dickbutt to me

  • @luismuzquiz1400
    @luismuzquiz1400 6 лет назад +3

    Very entertaining explanation. Thanks!

  • @mattgraves3709
    @mattgraves3709 5 лет назад

    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

  • @nikeethamusic330
    @nikeethamusic330 4 года назад

    Love the way you simply even the most complex topics!!

  • @Evuce1000
    @Evuce1000 5 лет назад

    Not boring at all! Love your lessons!

  • @ritikkhatri
    @ritikkhatri 6 лет назад +2

    That was a very nice explanation!!

  • @ky-effect2717
    @ky-effect2717 3 года назад +1

    Thank you! This is exactly what I was looking for and very well explained.

  • @tyfooods
    @tyfooods 5 лет назад

    I reaaaaaallly like your videos and teaching style. Keep on keeping on!

  • @hassanshahzad3922
    @hassanshahzad3922 3 года назад

    He is the one of the best presenter i have seen in my life.

  • @MegaARYARAJ
    @MegaARYARAJ 5 лет назад

    Interesting JavaScript tutorial..this is the best video I got till now about the differences between var and let..

  • @MrFLAWl355
    @MrFLAWl355 6 лет назад +23

    YES! promises and promises chaining PLEASE!

  • @bearded-cat
    @bearded-cat 6 лет назад

    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

  • @jojojawjaw
    @jojojawjaw 6 лет назад

    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!

  • @mrshurukan
    @mrshurukan 6 лет назад

    Awesome video! Thanks, now I'll use "let" as well, because I'm used to think about "block scope" and not "function". Very interesting stuff, thanks a lot!

  • @ga7853
    @ga7853 6 лет назад +2

    You are magnificent, and the way you made your videos is unbelievable fantastic, I have not seen anyone pro or regular who made such good videos that are pleasant to watch like you did, like if I'm sitting in a great school, Thank you a million for your great way of explaining and for those wonderful great videos that made learning fun.

  • @rdscleaners
    @rdscleaners 10 месяцев назад

    Love your videos and explanations of topics so everyone can understand :)

  • @tobiumevolume9890
    @tobiumevolume9890 6 лет назад +7

    Amazing video, would have saved me thousands of lines of code if i had informed myself about let before ^^

  • @joshua_tobler
    @joshua_tobler 4 года назад

    That was actually super helpful. I'm graduating from Google Apps Script to real Javascript and doing some game and graphics coding for the first time, and this explained > 25% of the language barrier I was encountering.

  • @roltthehunter
    @roltthehunter 6 лет назад +1

    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.

  • @vivekraj9875
    @vivekraj9875 4 года назад +3

    Happy teachers day Dan,😘😘,,, You're the best teacher I've ever seen... And You're attitude towards teaching is just Awesome 😀😀

  • @lleytonmorris6305
    @lleytonmorris6305 6 лет назад

    thank you so so much. you started using let a while back and I asked my qualified friend to explain why and it didn't make sense other than they had different use cases... der.
    after listening to this video it makes absolute sense and i will 100% be using let for, at least, my for loops. your videos are my biggest inspiration and I am just so glad that through whatever round about way, you are able to explain to me at least how all these abstract things work.

  • @sharpfocus9572
    @sharpfocus9572 3 года назад

    Hoisting and Nested loops is an nightmare for many people I think , you are an excellent teacher , your way of learning us is fantastic , the class table's explanation is the key to success , many greetings my friend !!

  • @Karlponken
    @Karlponken 5 лет назад

    Great explanation! Thanks for this video!

  • @kaunjovi8350
    @kaunjovi8350 3 года назад

    Does hoisting happen in case of let also? Or any similar transpiling on let keyword before the interpreter can actually work on the instructions?

  • @Messirobben047
    @Messirobben047 6 лет назад

    I wish all the teachers in colleges were like you. Amazing Skill.

  • @LawZist
    @LawZist 6 лет назад

    exactly what i was looking for . now i know the differences

  • @jorge88824
    @jorge88824 5 лет назад

    The first time I've watched a video from this channel I was thinking "what is wrong with that guy?". After the ending of the first video I've realized how good Dan's explanations are. Since then I'm following his videos and enjoying the way of braking difficult concepts into small pieces. I've learned a lot about JS and found answers of a lot of questions I've asked myself. Keep going, man! 10x for creating this amazing channel and being a person you are!
    Greetings from Bonn, Germany.

    • @bunderland
      @bunderland 4 года назад +1

      There is nothing wrong with him :) He has a great personality.

  • @joushwashahzad2341
    @joushwashahzad2341 4 года назад

    Best Explanation ever on Let

  • @thecowbox
    @thecowbox 6 лет назад

    Daniel shiffman: Legend. I tell everyone this.

  • @Zen-lz1hc
    @Zen-lz1hc 2 года назад

    This was one of the most entartaining video that I watched on `let` and `var` pretty fun, thank you :)

  • @darkthrongrising5470
    @darkthrongrising5470 6 лет назад

    This is actually really good to know.

  • @ades3967
    @ades3967 4 года назад

    Fantastic explanation of Hoisting in JavaScript!

  • @sandeepvk
    @sandeepvk 6 лет назад

    I don't use JS anymore but I am subscribed because you are so much fun to watch

  • @evhwolfgang2003
    @evhwolfgang2003 6 лет назад

    So with let and var, the variable is typeless or dynamically typed?

  • @JackFlashTech
    @JackFlashTech 4 года назад

    This is really interesting. I had thought that it was some kind of optimization around declaring constants and variables that could change as functional programming became more fashionable. Thanks.

  • @cm_dev
    @cm_dev 2 года назад

    This video was fantastic.

  • @Sleepytj007
    @Sleepytj007 3 года назад

    Thank You for sharing your knowledge.

  • @footballarena6562
    @footballarena6562 4 года назад

    i started learning python but stopped to learn js because of this channel. I love the way you teach and your contents.

  • @justgaming3794
    @justgaming3794 5 лет назад

    Love your stuff Daniel

  • @Loppy2345
    @Loppy2345 6 лет назад

    This video is a gem.

  • @deleater
    @deleater 5 лет назад

    over 9000 blessings to you sir for explaining this.

  • @sumer9999
    @sumer9999 5 лет назад +1

    You are awesome , so are your videos

  • @bearded-cat
    @bearded-cat 6 лет назад

    wow thats so well explained! thanks a lot you have new subscriber now

  • @SpencerDavis2000
    @SpencerDavis2000 4 года назад

    great video. I didn't even know what block scope or function scope was, just knew it was different and tricky. Now I know. thank you so much. Subscribed! looking forward to more of your videos :-)

  • @keen123
    @keen123 6 лет назад

    Very helpful! Thanks Dan!

  • @mahyarazad
    @mahyarazad 4 года назад

    Man, I love your style. It's heuristic 😎😃

  • @iq0578
    @iq0578 3 года назад +1

    I have always used let, but I didn't know why until now :)

  • @vishnuumakanthan9583
    @vishnuumakanthan9583 5 лет назад

    Very informative video , Thanks a Lot!

  • @alialrahem9817
    @alialrahem9817 4 года назад

    Very clear thank you for the video

  • @leonardgarthbrooks
    @leonardgarthbrooks 4 года назад

    This might sound like an odd question, but why can't I find this playlist on the Coding Train main RUclips site? In fact, there are a few tutorial series that I can't seem to directly, including the p5 Sound one. Am I missing something?

  • @StrangeComments
    @StrangeComments 6 лет назад

    You explained this very well

  • @maremmaladra292
    @maremmaladra292 3 года назад

    Great work, you are the best: keep It on!

  • @chang112x
    @chang112x 5 лет назад

    thx. Finally someone explained to me.

  • @kremlinkrusher2551
    @kremlinkrusher2551 3 года назад

    Tried the first part in p5.js editor, if I correct to console.log(x) then let x; followed by the rest, it results in the same error as let x =100; . I assume that they have updated it so that you can no longer call a variable before defining it with let.

  • @AmirAli-kj5bm
    @AmirAli-kj5bm 4 года назад

    thanks, really helps me a lot

  • @Kafka8233
    @Kafka8233 3 года назад

    So finally I understand the difference between let and var

  • @MrRys
    @MrRys 6 лет назад

    Why not just add error msg when you declare two vars of the same name?

  • @WistrelChianti
    @WistrelChianti Год назад +1

    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.

  • @dertyp6833
    @dertyp6833 6 лет назад +55

    2:54 - 3:00 Aaaaaaaaaargh!

  • @martin-xq7te
    @martin-xq7te 5 лет назад

    Very well explained. I am starting out with Javascript so a good piece of timing for me. Ive also looked at your video on Genetic Algorithms in P5.js. If viewers have not seen that its well worth a look. If you have a pdf of that video I would buy it. Keep up the good work

  • @zemalex89
    @zemalex89 4 года назад

    Great video!

  • @eandresrodriguez
    @eandresrodriguez 5 лет назад

    Best teacher ever!

  • @playerthree5742
    @playerthree5742 6 лет назад

    Great example! sometimes errors can be good news as well !

  • @boozer69n
    @boozer69n 6 лет назад

    Great explanation, thanks for the video. =)

  • @vincesanchez7790
    @vincesanchez7790 5 лет назад

    Let is useful :) Thanks man Now i get it

  • @aymanafzal
    @aymanafzal 5 лет назад

    A new subscriber... Great explanation

  • @emmakent3681
    @emmakent3681 Год назад

    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() // ;)

  • @ericaepperson8928
    @ericaepperson8928 4 года назад

    the best instructor everrrrrrrrrrrrrrrrr

  • @nirahhp999
    @nirahhp999 2 года назад

    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

  • @gabrielscoville1548
    @gabrielscoville1548 5 лет назад +1

    "I'm soooo behinddd BTW" lol. thanks for the video though, very informative.

  • @rrutter81
    @rrutter81 4 года назад

    You present in a very entertaining way.
    One thing you missed was lexical scope with let vs var. Think setInterval method.
    I tripped up an interviewer on this when they were looking for a closure answer.
    subscribed

  • @martin_orue
    @martin_orue 4 года назад

    Excellent! Thank you!

  • @thehumbledprogrammer8833
    @thehumbledprogrammer8833 6 лет назад

    nice video sir! you made my understanding clear!

  • @kevinrushdi8298
    @kevinrushdi8298 4 года назад

    can you explain me why "let" variables will never create a property in the global/window object say:
    let x = 100;
    console.log(window.x); // undefined
    and can you explain me between a function declaration and a variable declaration which gets hoisted first
    function x() {}
    var x;

  • @KucingBisnis
    @KucingBisnis 3 года назад

    can anyone tell me what editor hes using

  • @sergiyrudenko905
    @sergiyrudenko905 5 лет назад

    Great video!!! Thanks a lot!!!

  • @ivanespinosa525
    @ivanespinosa525 5 лет назад

    I have just a question, when you say let j = 20, at the last part of the video, aren't you declaring a new variable?

  • @YaronVegOfficial
    @YaronVegOfficial 2 года назад

    expertly explained.

  • @hachij_
    @hachij_ 6 лет назад

    Now I understand thank you!

  • @annaliistahevali771
    @annaliistahevali771 4 года назад +7

    This is what being high on JS looks like XD

  • @Ozziepeck11
    @Ozziepeck11 6 лет назад +2

    Mango Loving astronauts. Perfection.

  • @user-jy9qp4uw5f
    @user-jy9qp4uw5f 6 лет назад

    Hello, very interesting video considering all the new frameworks of javascript and the popularity that it has gained ( React js etc.). Do you plan making a video about immutable js?

  • @julians.2597
    @julians.2597 2 года назад +2

    "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.