Learn JavaScript Loops in 10 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ค. 2020
  • In today's video we'll be taking a look at looping and iteration within JavaScript - this is perfect for beginners who are just learning JavaScript, or experienced developers looking for a recap.
    I'll be covering the following loop types: for, while, do while, for in, for of and forEach.
    Support me on Patreon:
    / dcode - with enough funding I plan to develop a website of some sort with a new developer experience!
    For your reference, check this out:
    developer.mozilla.org/en-US/d...
    Follow me on Twitter @dcodeyt!
    If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
    #dcode #javascript #webdev

ความคิดเห็น • 34

  • @manamiemyr
    @manamiemyr ปีที่แล้ว +1

    as a javascript learner this guy is hands down one of best explanator of some of the js concepts that I find slightly difficult to wrap my head around. Whenever I get stuck on a topic, I jump on youtube, type in the keyword of the concept i'm looking for and PRAY TO GOD this guy has a video on it

  • @josephperezcodes1173
    @josephperezcodes1173 2 ปีที่แล้ว +2

    Thank you I now can do a for loop. and was able to finish a coding excercise at my bootcamp.

  • @tinanguyen1072
    @tinanguyen1072 ปีที่แล้ว +1

    I just wanted to say thank you for making this video and going through all of them step by step. It really helped I’ve been struggling on loops and this helped make things more clear. Most videos out there are using complex words to explain things and really what everyone is looking for is a simple explanation a kid can understand which shows how good of a person you are at explaining. I don’t see why this doesn’t have more likes this video was so helpful!!!

    • @dr_corrupt1014
      @dr_corrupt1014 10 หลายเดือนก่อน

      anything else your struggling with ?

  • @arnoldasmatijosius5154
    @arnoldasmatijosius5154 2 ปีที่แล้ว +1

    I liked the stuff because it's an understandable and not too long a tutorial. BIIIIG THANKS

  • @josephdemeo5984
    @josephdemeo5984 8 หลายเดือนก่อน

    TYSM, I learn so much better by watching and doing than reading a wall of words

  • @marimuthur9456
    @marimuthur9456 ปีที่แล้ว

    Fabulous explanation thank you so much😊👌🏼👌🏼👌🏼

  • @hemantkumar9620
    @hemantkumar9620 3 ปีที่แล้ว +2

    Thank you for this video, Make more like this please, on each subject :)

  • @ishaashiq9162
    @ishaashiq9162 ปีที่แล้ว

    Tysm it really help me alot

  • @excellins
    @excellins ปีที่แล้ว

    Why does this video have few likes? this is the most clear explanation I've seen

  • @keifer7813
    @keifer7813 ปีที่แล้ว +1

    As someone coming from Python, I thank you from the bottom of my heart

  • @parthasarathimoharana5282
    @parthasarathimoharana5282 3 ปีที่แล้ว +1

    You are awesome Brother. Thank you for this video.... Keep it up

  • @mitalidas9293
    @mitalidas9293 2 ปีที่แล้ว

    The effort is much appreciated.

  • @FalseDev
    @FalseDev 3 ปีที่แล้ว +1

    Watching the video though I'm intermediate in javascript, coz your channel is awesome. Great video

    • @dcode-software
      @dcode-software  3 ปีที่แล้ว

      Sorry about that - I don't think the audio is any different to how I regularly do it but I'll look into it

    • @FalseDev
      @FalseDev 3 ปีที่แล้ว

      @@dcode-software I'm sorry, it seems like my earphones weren't properly plugged in at that time, rewatched the video and realized it, really sorry....

  • @gearsdan
    @gearsdan ปีที่แล้ว

    loops are so confusing, but this helps

  • @davidforer9424
    @davidforer9424 3 ปีที่แล้ว +1

    Great Video. I enjoy your topics. How would you go about sorting the forEach loop?

    • @dcode-software
      @dcode-software  3 ปีที่แล้ว

      You could take a look at the Array sort() method

  • @stevendu06
    @stevendu06 3 ปีที่แล้ว +2

    Great video but you should have probably mentioned that forEach() does not work quite right with async/await or generators, and show example of how regular for loop vs forEach() behave :)

    • @dcode-software
      @dcode-software  3 ปีที่แล้ว +1

      Ahh.. good idea, I'll keep it in mind

  • @100VedPrakash
    @100VedPrakash 3 ปีที่แล้ว +2

    Very informative video about different types of loops...Thanks Dom

  • @KostaTsourdalakis
    @KostaTsourdalakis 3 ปีที่แล้ว +2

    Actually keeennnn as about this vid

  • @mr.o5577
    @mr.o5577 3 ปีที่แล้ว

    Hi, I've seen some people using more that 3 statements inside the for loop, like the length of the array or so, could you have a video that explains whats going on in it?
    Ex: for(let i = 0; len = arr.length; i < 10; i++){
    console.log(i);
    }

    • @dcode-software
      @dcode-software  3 ปีที่แล้ว +2

      I could potentially do a video on that, yes, I'll make not of it 😁

  • @_.sunnyraj._
    @_.sunnyraj._ 3 ปีที่แล้ว

    Woah ! Woah !

  • @gaminggoddessaria
    @gaminggoddessaria 2 ปีที่แล้ว

    for each doesnt work

  • @sipapplejuice9049
    @sipapplejuice9049 11 หลายเดือนก่อน

    how do ppl get this bs >:(

    • @dcode-software
      @dcode-software  11 หลายเดือนก่อน

      Just keep writing code. It'll *click* eventually 😎