How can I loop through this array with a partial string?
So the word "Brian" needs to be added onto the end of "profile".
var myString = "Brian";
for (k = 0; k < gameData.courseProfiles[i].profile"+myString+".length; k++) {
var andrew = gameData.courseProfiles[i].profile"+myString+"[k].type;
console.log (andrew);
}