Learn Javascript Programming #4: For Loops (Looping Through Numbers, Arrays, Objects)

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 มิ.ย. 2024
  • 🔥 Get my FREE project-based Javascript course, zeeee best Free Javascript course in the world, at www.whatsdev.com!
    So far, in our last videos, we learned about data types, data methods and properties, and if statements.
    Now, we learn about loops - specifically the for loop in javascript. Loops are used to repeat things.
    Some real life examples of where for loops are used would be:
    1. When working out, you do 12 reps for each set. So, you do the same motion of an exercise 12 times and you stop.
    2. Let's say you have a party and you invite 15 friends. Now, you need to serve them some drinks and you go distribute it to your friends one by one for 15 times.
    Hope that makes sense!
    Happy Coding!
    *FOLLOW ME!
    ►INSTAGRAM @zinnylives
    ►Business Only: tenzin@whatsdev.com
    MY EQUIPMENT LINKS TO AMAZON
    The mic I use to record my golden voice - amzn.to/2E3bAEq
    The laptop I use to edit my LIT videos - amzn.to/2H00cwx
    The keyboard I use to code - amzn.to/2GRnODr
    The most ergonomic mouse that I use all the time - amzn.to/2NkVWIX
    The best android phone on the market - amzn.to/2TWYbo9
    The camera I use to shoot my awesome videos - amzn.to/2BKC7X2
    My 4K mirrorless camera - amzn.to/2E31WBL
    The best Gaming Desktop - amzn.to/2XgDea7
    The best bang-for-buck 4K UHD IPS Monitor - amzn.to/2U0C7cx
    The best 29" UltraWide Screen LED-Lit Monitor - amzn.to/2GVVoYI
    The memory card I use - amzn.to/2TYawIQ
    My High-Def PRO webcam - amzn.to/2U2jIMy
    The best storage for my ever-growing collection - amzn.to/2NqV85z
    The flash drive I use - amzn.to/2T82PCB
    The best Digital Wireless Microphone - amzn.to/2E2YXJz

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

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

    I love how you're very attentive to all the small details that may trip over new learners. Thanks for this clear explanation on the whole concept!

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

      Ikr. He explained so thoroughly

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

      Like, the explanation is soooo intentional and detailed. 💥

  • @EnjoyedSkillet
    @EnjoyedSkillet 6 ปีที่แล้ว +94

    Dude.. you're better than the dude I bought on Udemy.. fak. Thanks for the tutorial!

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

    I'm only six minutes in, and already understand for loops better than I have in the few months I've been learning JS. Thank you for this!!

  • @Misfittykitty
    @Misfittykitty 3 ปีที่แล้ว +13

    You, sir, win the clarity award for teaching complex topics. Bear in mind that I've been teaching high school chemistry, biology, physics, and anatomy & physiology for 12 years. Now I'll be learning coding from you for sure! :)

  • @Twinsane_in_the_membrane
    @Twinsane_in_the_membrane 5 ปีที่แล้ว +41

    Your teaching style is exactly what I needed to understand my boot camp prework. Thank you!!!

    • @JP-zp6ob
      @JP-zp6ob 3 ปีที่แล้ว

      how did you bootcamp go? are you working in the field?

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

      super helpful for me too :D cheers !

  • @yui767
    @yui767 ปีที่แล้ว +5

    OMG, you are the best teacher I've seen in a lot of videos. I had a lot of questions about Loop and Array, you explained clearly and now I understood it. Thank you so much for sharing the video!!!

  • @OliverGomes
    @OliverGomes 6 ปีที่แล้ว +9

    This is so far one of the best tutorial on loops, Thanks for being this clear and can't wait to explore more of your tutorials.

  • @williamsmith3169
    @williamsmith3169 3 ปีที่แล้ว +4

    Explains concepts in a concise manner that most books and vids fail to do. Thanks for the insight.

  • @justynaptak450
    @justynaptak450 4 ปีที่แล้ว +5

    English is not my native language and with videos on yt I have really often problem to understand people without subtitles, and when guys from my Camp showed us the sources wich i should use to learn I freaked out! But with your channel I have any problem to understanding, and the content is awesome. Thanks from Poland!

  • @jip8793
    @jip8793 3 ปีที่แล้ว +5

    That's the best video about JS loops I've watched so far, and I've watched many.

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

    This is clearest explanation of for loops I have ever seen.

  • @serinabakkali4082
    @serinabakkali4082 5 ปีที่แล้ว +13

    this is the best explanation ever. thank you

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

    thank you so much for explaining loops in detail!!! you are so clear and thorough. Best teacher ever!!

  • @omololaanozie693
    @omololaanozie693 6 ปีที่แล้ว +49

    I am completely new to this world and I keep wondering if i'm missing something; i read/hear that Javascript is hard but yet with the way you teach it im not only getting it but im really enjoying it too. I know this series is the tip of the iceberg when it comes to my ultimate goal of becoming a web developer but you have made it at least all seem possible. Thank you so much

    • @whatsdev
      @whatsdev  6 ปีที่แล้ว +15

      It's easy to get started but hard to master, but I'm glad I helped you get started :) Also, I love teaching, and I try to make things simple as possible without using abstract terms so that helps too 😃. Keep going! 🔥

    • @mariabelan-crawford7429
      @mariabelan-crawford7429 5 ปีที่แล้ว +1

      Hey Omolola - good luck in your quest to become a web developer :) I am on a similar path and as I am just now starting out (3 months in), I am curious to know how you're doing!

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

    Excellent explanations - thank you! I appreciate how you explain how/why things work. Especially at the end when you're talking about how to iterate through an object and how objects don't have indexes but rather have properties. Little details like that help everything make more sense.

  • @BaerKeep3r
    @BaerKeep3r 5 ปีที่แล้ว

    Thank you! Needed to to use for loop and understood it by watching this.

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

    Thank you! You explain things really well.

  • @t-roy9800
    @t-roy9800 6 ปีที่แล้ว

    Dude, you have the gift of teaching... cant wait for your Full JavaScript course! Cheers

  • @charlotteyandell5501
    @charlotteyandell5501 4 ปีที่แล้ว

    THANK YOU I really needed to come across a tutorial like this right now

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

    This explains loops so thoroughly, I finally get whats actually happening, thanks so much!

  • @paudelamarianaoancea3761
    @paudelamarianaoancea3761 4 ปีที่แล้ว

    You are the best finally somebody that knows how to explain. now i understand for loop at the basic. finally thanks.

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

    Thanks so much for this! I liked when you broke it down with the starting point, when the loop should end and the incrementor or decrementer!

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

    Thank you for the thorough explanation! I have a test tomorrow and this video made it so much more clear to me!

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

    I've learned a lot from you!! Thanks

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

    You are the BEST!!!!! Take it from a slow learner that's hardly satisfied and gets easily bored with tutorials. You are the BEST!
    Please keep it up!🌹

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

    This is the first time ever watching your video and I am in LOVE with how you explain everything. Thanks Mate!

  • @octaviocortez4508
    @octaviocortez4508 5 ปีที่แล้ว

    Thanks for the video!! thankful that you took the time to break it down into parts

  • @alexyep1883
    @alexyep1883 5 ปีที่แล้ว

    Thanks a lot bro. I was struggling a bit with all these concepts and you made it very easy to understand.

  • @bridydone9252
    @bridydone9252 5 ปีที่แล้ว

    Finally!! I have been struggling with getting some questions answered (watched tons of videos and read online for over a week) and this is the first time they've been answered. You answered 2 of my biggest questions right at the end there.-- Printing value and not just property by adding elem again, and..... about the quotes being added because they are really strings. I need to look further into that, but at least now I know what to search for. NOBODY explained those two things (at least not in a way I understood). It's hard to move forward when you don't understand the basics, and it's frustrating spending hours and hours looking at the same crap over and over hoping at least one will make sense! My only problem, is you don't have more videos, lol. THX! I'm convinced that most tutorial videos are NOT for teaching to teach, but for them to "show off" to potential employers, etc, . But this video was all about teaching.

  • @Frantiska603
    @Frantiska603 6 ปีที่แล้ว +3

    This video was so helpful!

    • @heart2sky
      @heart2sky 5 ปีที่แล้ว

      My personal best pick from all over TH-cam to Learn Coding(HTML, CSS, Javascript.. and how to become Fullstack Developer).
      No1 is by Divinector
      th-cam.com/channels/ki4IDK86E6_pDtptmsslow.htmlplaylists
      No 2 is by Traversy Media
      th-cam.com/users/TechGuyWebplaylists
      You gotta check out these Two Guys!!~ better than Paid Courses!~ Stop watching Unorganized Courses!~
      All Videos are Pin to the Point! ~ You won't regret it!!

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

    Though i am late to the party but thanks alot dude. Got stuck with loops and you fixed it for me. No other tutorials i've seen explained in such great detail. I bet even a toddler can understand lol. 🤣

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

    very clear. the clearest explanation of loops I have seen so far

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

    This was a great video that helped me eliminate some of my huge misconceptions about for loop. I'm a beginner to Javascript(Programming in general) and I was quite confused about for loops and such, probably because Khan academy doesn't teach it in the lessons i have already finishes, so i brought my mind to somewhere that always solves my problems which is youtube and stumbled across this video. Anyways, this videos was very helpful to a beginner like me. Thanks...

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

    I think this man get that energy past 3:00 AM. because he explains so freaking good
    Thanks man, I've learned a lot

  • @mechiellouw3315
    @mechiellouw3315 4 ปีที่แล้ว

    I'm a teacher and I can tell you're a born teacher. You should teach coding to kids! Thanks man, your videos are most helpful to me. I'm getting there!!!
    Regards
    Mechiel
    South Africa

  • @tanpinnu.e
    @tanpinnu.e ปีที่แล้ว

    Thanks so so much for your sagacity in clarity . I can most likely work with loops more easily now. Thanks

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

    man, this was really cool! you're better than the guy I paid for!

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

    Incredibly concise thank you

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

    this is the best beginner tutorial for JS. thank you.

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

    very detailed and good explained tutorial ! Thank you for that! :) I was having a trouble to understand for loops ...

  • @johnnyguitwithit2614
    @johnnyguitwithit2614 6 ปีที่แล้ว

    You're a great teacher, Thanks!

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

    Thank you for explaning this with such clarity, I was lost and this made it all sound so simple. You are a lifesaver!

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

    I love this guy. his videos are great and easy to understand. If I see him in person will hug him and give him a gift.

  • @alicenikuze231
    @alicenikuze231 5 ปีที่แล้ว

    Great video, I was struggling to understand for loops but you made it very easy for me. keep on making more videos

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

    You made this so easy to comprehend. Thank you! Finally, I get it.

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

    Thank you! it finally makes sense. ill be watching through your playlist

  • @CJ-nz5rt
    @CJ-nz5rt 3 ปีที่แล้ว

    your tutorial is very detailed. started from the very basics to practical uses

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

    You are super amazing man! I now understand 'for loop' better. Thanks a lot.

  • @tallahondro
    @tallahondro 5 ปีที่แล้ว

    Excellent description of for..,loops!!! Wish my bootcamp instructor had been that precise when I started learning programming 6 months ago.

  • @Scybes
    @Scybes 6 ปีที่แล้ว

    You're a great teacher, thanks man

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

    This was such a big help. Thank you, the object loops were kind of confusing me. This really cleared it all up. You rock

  • @cosmasoften5517
    @cosmasoften5517 5 ปีที่แล้ว

    thanks alot man. i really had it hard understanding loops properly but you made it all clear. bless

  • @internationalmensgroominga3156
    @internationalmensgroominga3156 5 ปีที่แล้ว

    Great stuff, really great guidelines for teaching,
    thanks

  • @zoltanlenkei1991
    @zoltanlenkei1991 5 ปีที่แล้ว

    Very clear explanation. Thank you !

  • @MsAnjolita
    @MsAnjolita 5 ปีที่แล้ว

    thank you for the detail explanation !!!

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

    Best TH-cam video so far. Thanks very much

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

    you are special teacher,i love you about how you can explain js

  • @eric31022
    @eric31022 6 ปีที่แล้ว

    wow thanks man you really break things down video was very helpful

  • @bestofthebest6349
    @bestofthebest6349 5 ปีที่แล้ว

    Thanks for the video.. This was really helpful

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

    You are definitely one of the best teachers

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

    Great teaching style! Easy to follow especially for beginners like me.

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

    i cant express ur teaching skills in words ur the best bro !!

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

    I found this extremely helpful! Thanks.

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

    Thanks dude your videos are working for me

  • @abhishekbhatore9709
    @abhishekbhatore9709 6 ปีที่แล้ว

    This is call THE TUTORIAL ......
    Dude, The way you come up with behind the scenes idea, itz seems like, things copy in your mind and directly paste into users mind ... The way you covered typical parts in more simplistic way is awsome ..
    Good work .....
    Keep posting ..

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

    Unreal video man. Thanks for going into the practical examples

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

    this teaching style is amazing... i wish my teacher explained like this.... the small details matter :)

  • @TheeeGrappler
    @TheeeGrappler 4 ปีที่แล้ว

    This was VERY helpful for me. I got stuck on loops in the freecodecamp "basic javascript" curriculum. They didn't even give any in depth instruction before the loop challenges started. Thank you!

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

    Your teaching style is very amazing.

  • @albertscheichstein4242
    @albertscheichstein4242 5 ปีที่แล้ว

    saved my day! really nice explanation for dummies. Made it clear and simple. Ty :)

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

    Your teaching is really perfect.i have learnt alot.

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

    Thumbs up, simple demonstration and well understood

  • @umilebhengu3718
    @umilebhengu3718 5 ปีที่แล้ว

    You are the best bro! You are truly good at teaching, please do more tutorials pleassssssss.

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

    this is how every teacher is supposed to explain the shit. Well done Sir.. You are a scholar

  • @nawaz687
    @nawaz687 5 ปีที่แล้ว

    Thank you very much for your best explanation god bless u bro

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

    Perfect explanation. Thank you sir

  • @yeeli1354
    @yeeli1354 5 ปีที่แล้ว

    Please upload more courses. You are so good at this

  • @Arsenic_Z
    @Arsenic_Z 4 ปีที่แล้ว

    You should continue your learn Javascript videos. Im starting a Javascript class and you videos really make sense to me.

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

    thanks for .length explanation. you just nail it. thank you.

  • @jonathan-uwagboepromise3139
    @jonathan-uwagboepromise3139 2 ปีที่แล้ว

    Boy!!
    You are good at teaching. God bless you.

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

    Thank you very much for this tutorial...

  • @valters7444
    @valters7444 4 ปีที่แล้ว

    Great explanation, Thanks mate!

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

    Wow this is the best loop tutorial..thank you so much

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

    Thanks man, brilliant explanation.

  • @SayWhat4040
    @SayWhat4040 6 ปีที่แล้ว

    Love your videos they help so much

  • @yeeli1354
    @yeeli1354 5 ปีที่แล้ว

    Wow you are a genius. You explain it very well and answer all my questions

  • @dermotgleeson42
    @dermotgleeson42 7 หลายเดือนก่อน

    Thank you so much for this ❤ very helpful and easy to understand

  • @jenoyestewart1516
    @jenoyestewart1516 6 ปีที่แล้ว

    Is it possible for a loop to get all files in a source folder (e.g. when creating an image slider) without reference to an end point? So that even if i add an image o the src file, it would automatically add that image as a part of the slider.

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

    I've been failing to understand the concept until I watched this video. Thank you so much, mate.

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

    I absolutely subscribing! Brilliant explanation!!

  • @educatorestrada29
    @educatorestrada29 4 ปีที่แล้ว

    Wow! its been a long journey trying to understand for loops, i mean i understand the theory but i've had a difficult time applying other things, like arrays in loops, etc. I believe i got it, but if i did, i want to send you a big hug. Thank you so much,
    Puerto Rico

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

    You are a great teacher!

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

    Thanks for the tutorial it was really tough trying to get my head around this but you've really simplified it for me. Any advise for pursuing a career in coding as I know a lot of course are quite pricey.

  • @meryemk.4884
    @meryemk.4884 ปีที่แล้ว

    Very helpful tutorial and so well explained!

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

    Your tutorials are the best thanks alot

  • @noblesse8786
    @noblesse8786 4 ปีที่แล้ว

    Thanks a lot this tutorial was totally worth it

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

    This is a great video! Thank you for this!

  • @codelikeivan5355
    @codelikeivan5355 6 ปีที่แล้ว

    this video helped me a lot ! thanks !!!! subscribed

  • @mattwatt1315
    @mattwatt1315 6 ปีที่แล้ว

    Very helpful video, thanks heaps.

  • @HSSajot
    @HSSajot 4 ปีที่แล้ว

    Thank you for the Explanation and i expecting that there is more tutorial about JavaScript 💕