Is it the idea/concept of them or is it a particular question/application
"Just struggling on certain concepts such as arrays, for and do loops"
K, lets start with arrays:
1) Arrays are a group of variables
2) All the variables in an array are of the same type, ie. Array of integers or an array of strings, you can't have integers and strings in the same array.
3) You can pick out a variable within an array by a process called "indexing" which means each variable has an index which defines it's position in the array.
4) Indexing starts at 0 and goes up by 1 for each element in the array
here is how you declare an array in JS:
var emptyArray = ; var fullArray = ["fred", "steve", "will"];
var firstElement = fullArray; console.log(firstElement); fullArray = "pete";
On the 3rd line you see indexing go the other way, in this example we are writing to the array by giving an index, after line 3 the array will contain 4 names and the last one will be "pete".
If you just want to add something to the end of an array, you can do so without having to index, see below
One last thing with arrays: don't want to twist your head but an array can also contain more arrays inside it, this is known as a 2-dimensional array and it looks like the following:
var 2dArray = [ [1, 0, 1], [1, 1, 1], [0, 0, 1] ];
I'll update this later when I get some more time. happy coding for now