Showing posts with label loops. Show all posts
Showing posts with label loops. Show all posts

Friday, 21 November 2014

Javascript - Learning Loops Part 2

Learning Loops Part 2

Yesterday I was totally confused by loops and I hoped that after giving my brain a night to digest the concept, I'd have a better understanding today.

I'm pleased to say that's been the case. I've written a nice little script today that uses a for loop as well as a while loop to essentially achieve the same outcome. Basically to increase the value my variable holds by an amount (I've been multiplying by two or three), writing the new value and then looping until a certain number is reached.

I'm feeling super positive now because I've broken both a mental as well as a knowledge barrier with reagrds to learning javascript.

Tomorrow I'm going to continue with loops and if I get the time maybe some debugging.

Thursday, 20 November 2014

Javascript - Learning Loops Part 1

Learning Loops Part 1

As I said in yesterday's post, I delved into the world of loops this evening (for, while etc.). As I expected, I'm very confused. I do semi-understand the principle mechanics behind it, but there's still a lot for me to digest. I haven't actually written any code this evening as I spent the time reading about the idea (remember I can only do 30-60 mins a day).

Hopefully my brain will digest the information I learned today and I'll have a clearer picture of it all tomorrow. This is exactly the point where I've given up before and I refuse to do so again.

In other areas, I'm slowly building up a good selection of reference web pages which are helping me tremendously if I run into something I've not encountered or an unexplained part of a tutorial or article.