Is it true that adding an element to an array using the push method increases the length of the array by 1?
var parameters = [];
if (parameters.length == 0) {
// Combine select menu and option, then add to parameters array
var parameterSelected = nameOfSelectBox + " " + ":" + " " + $i + ",";
parameters.push(parameterSelected);
} else {
var parameterSelected = "," + " " + nameOfSelectBox + " " + ":" + " " + $i;
parameters.push(parameterSelected);
}
// Check for duplicates
// Does a select input already exist?
// Add to appropriate indexes and either add new or modify existing parameters
console.log(parameters.length);
});