DEV Community

amberchisholm
amberchisholm

Posted on

Day 8 Learning Javascript

JS just threw me for a loop! Eek!

So, I mentioned in my last post how easy I found the subject of Objects, and the exercises I did along with it. And how that probably means the next topic I tackle will give me hell. Well, I was right.

I learned about Loops today.

I. Am. Lost.

Everything else I've been able to grasp pretty well, and whatever I didn't understand initially I researched deeper into the topic via MDN, Stack Overflow, and video tutorials until it made sense. But so far, nothing about Loops make sense to me. I don't get the syntax. I don't get when to use for, forEach, while, or do-while. I don't understand the results the Loops return.

Looks like I have a LOT of extra digging to do into Loops.

Top comments (2)

Collapse
 
saninnovator profile image
santhosh neerumalla

I will try to help you on the while vs do-while. do-while starts without any condition check, it means that first iteration always happens in do-while and while checks the condition before any iteration begins.I hope it helps

Collapse
 
amberchisholm profile image
amberchisholm

Yes, that helps. Thank you. I did some more research on loops and finally found a couple of articles that explained it in a way that makes sense. So, I'm not so lost any more!