JavaScript Loops Made Easy

preview_player
Показать описание

In this video, we'll learn about all of the different types of loops in JavaScript. Loops are a way of repeating things in JavaScript. We'll cover FOR, FOR..IN, FOR..OF, WHILE, DO..WHILE, and the high order array function forEach. I will do my best to make JavaScript loops simple and easy.
_____________________________________

📚 Learn to CODE in just a FEW months here:
_____________________________________

🛠️ Tools I use:

_____________________________________

💖 Show support!
_____________________________________

Watch Next:
_____________________________________

Connect With Me:
_____________________________________

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.

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

Thanks for all of the support!!
Next up Learn Sass in 30 Minutes:

📚 My Favorite Web Design Books 📚
Web Design with HTML, CSS, JavaScript and jQuery Set by Jon Duckett (paid link)

codeSTACKr
Автор

Why can't everyone teach like this? This was so simple.

pieceofmilk
Автор

thanks so much. ive been struggling with loops for the past week and this really clear it up. ill share with with everyone in my group xD

pernellgrant
Автор

This is the best tutorial channel I have ever seen. straight to the point with colourful examples. You have worked hard to make us these videos. Thank you so much for the work. Keep them up. we really need them.

yousufkhan
Автор

Bro, I love how you explained for loops. I just enrolled in your JavaScript course. Thanks for the coupon too. #respect

astrarai-thesobercoder
Автор

My beginner questions and problems when I first learned about loops:
* "How does the loop know what to loop?" (--> it's in the scope (= what's inside the curly brackets), silly)
* I had trouble understanding why the condition was "i < 'number of iterations' " in the for loop and not "i <= 'number of iterations' " (--> well, it depends on what you want to achieve, but remember that the index of your array always starts with 0, ALWAYS!
Example:
let array = ["a", "b", "c"] //--> iterations needed: 3, index: 0, 1, 2)
* where you put console.log matters a lot (--> remember the order in which JS code is processed!)
* also remembering what the value looks like after each iteration (--> it gets easier to recognize with practice, when in doubt write it out for each round)
* "What is an iteration?" because I am not a native English speaker this wasn't a word I used often (--> iteration = loop, verb: to iterate)
* declaring a new variable to push into, somehow this never felt natural (also gotta put it outside and above the loop)
* resetting a loop, I always forgot that and then wondered why it didn't do what I wanted
* upside down pyramid, that's a SOB I couldn't crack myself
* nested loops (--> outer loop decides how many times you iterate inner loop)

vivianeb
Автор

I’ve used for loops before in powershell but, you just simplified so much!

laramecodes
Автор

Thank you so much!! Very clear and simple!

tomiwaale
Автор

Great Explanation. I'm second year in college and so far this has been the best explanations i've recieved. Often times I find myself just doing things because stack overflow had suggested it lol. Nice to dig into things a little more.
Thanks!

CalvinOnTheCoast
Автор

Best video on loops I have found! Well put! :-)

adampalivec
Автор

thank you so much bro, i had a lot of problems to understand for of and for in loop but i finally got it because of you, thanks!

scriptandojs
Автор

omg this guy is amazing. I just subscribed to his channel. I understood everything easily. keep up the great work. if I see this guy in person, I will give him a gift right away. love it

osamadias
Автор

This was perfect! I fully understand now and can refer to this video when I inevitably forget.

plor
Автор

Really helpful. The best Loops video I've found

bencole
Автор

Thank you for the amazing explanation of the loops! now I understand them better! I really appreciate it. please keep it up! Can you please tell me what is the name of your theme?

aliabukahil
Автор

I was having such a hard time understanding this Thank you!

viciousjake
Автор

Thanks a lot, very clear explanation!

mkmaria
Автор

Can you please do a practical tutorial on the MVC pattern? Not just theory but also in code.

lycan
Автор

thank you this helped me understand it a lot better

null
Автор

Thank you now I understand them better!

alexeyukidoko